Skip to content

ref(sveltekit): Inject init plugin only if sentry config files exist #7663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 30, 2023

To make our Sentry SDK setup easier, we'll instruct users to init the SDK in the hooks files rather than in the dedicated sentry.client|server.config.js files (#7661). To support this change, this PR makes the injection of our injectSentryInitPlugin into the users' build config depend on the existence of said sentry config files. If they don't exist, there's no need to add the plugin or adjust the server config.

@Lms24 Lms24 requested a review from AbhiPrasad March 30, 2023 08:38
@Lms24 Lms24 self-assigned this Mar 30, 2023
@Lms24 Lms24 merged commit cefd523 into develop Mar 30, 2023
@Lms24 Lms24 deleted the lms/sveltekit-no-inject-plugin-if-inti-files-dont-exist branch March 30, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants