Closed
Description
openedon Jun 7, 2024
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/astro
SDK Version
8.8.0
Framework Version
4.10.0
Link to Sentry event
No response
SDK Setup
output: 'server',
adapter: node({ mode: 'standalone' }),
integrations: [sentry({ enabled: true })],
Steps to Reproduce
- Run
astro build
without providing DSN - Run
PUBLIC_SENTRY_DSN=FAIL astro preview
Or visit the minimal reproduction at https://stackblitz.com/edit/github-5bh1gz?file=package.json
Expected Result
Sentry should log Invalid Sentry Dsn: FAIL
Actual Result
Sentry ignores the provided DSN and does not activate.
Sentry logs this error if you provide PUBLIC_SENTRY_DSN=FAIL
during the build stage. Providing a correct DSN at runtime does not fix that.
Metadata
Assignees
Type
Projects
Status
No status
Activity