Skip to content

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

Merged
Lms24 merged 2 commits intodevelopfrom
lms/sveltekit-no-inject-plugin-if-inti-files-dont-exist
Mar 30, 2023
Merged

ref(sveltekit): Inject init plugin only if sentry config files exist#7663
Lms24 merged 2 commits intodevelopfrom
lms/sveltekit-no-inject-plugin-if-inti-files-dont-exist

Conversation

@Lms24
Copy link
Copy Markdown
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