Skip to content

After calling php artisan sentry:publish --dsn=DSN no new line in .env #1001

@HazAT

Description

@HazAT

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

latest

Laravel version

12

Steps to reproduce

I was invoking php artisan sentry:publish --dsn=DSN
afterwards it said

Added SENTRY_LARAVEL_DSN to your `.env` file.
Added SENTRY_SEND_DEFAULT_PII to your `.env` file.
Added SENTRY_TRACES_SAMPLE_RATE to your `.env` file.

but SENTRY_LARAVEL_DSN gets appended without any newline .env
breaking the .env file

Expected result

Make a new line before injecting the env variables

Actual result

It puts the dsn in the same line as before

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions