You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run php artisan sentry:publish --dsn=your_dsn once, selecting yes for "Do you want to install one of our JavaScript SDKs? (yes/no)" and choosing a frontend framework (I chose React).
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
4.7.1
Laravel version
11.15.0
Steps to reproduce
Run
php artisan sentry:publish --dsn=your_dsn
once, selectingyes
for "Do you want to install one of our JavaScript SDKs? (yes/no)" and choosing a frontend framework (I choseReact
).Your
.env
file will look like this:SENTRY_LARAVEL_DSN=https://example@example.com/1234567 SENTRY_TRACES_SAMPLE_RATE=1.0 VITE_SENTRY_DSN_PUBLIC="${SENTRY_LARAVEL_DSN}"
Run
php artisan sentry:publish --dsn=your_dsn
a second time, again selectingyes
for JavaScript framework.Afterwards, try to run any Laravel command (e.g.
php artisan serve
).Expected result
It should just work / not cause any exceptions or non-parseable files.
Actual result
The
.env
file will look like this:Now if you try to run
php artisan serve
, you will get:The text was updated successfully, but these errors were encountered: