Skip to content

Commit e5338ef

Browse files
author
Luca Forstner
committed
beep boop
1 parent 9eb8d97 commit e5338ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/astro/src/integration/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
3636
// We don't need to check for AUTH_TOKEN here, because the plugin will pick it up from the env
3737
if (shouldUploadSourcemaps && command !== 'dev') {
3838
// TODO(v9): Remove this warning
39-
if (config.vite.build?.sourcemap === false) {
39+
if (config?.vite?.build?.sourcemap === false) {
4040
logger.warn(
4141
"You disabled sourcemaps with the `vite.build.sourcemap` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the `vite.build.sourcemap` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the `vite.build.sourcemap` option to 'hidden' or undefined.",
4242
);

packages/solidstart/src/vite/sourceMaps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ export function makeSourceMapsVitePlugin(options: SentrySolidStartPluginOptions)
1919
if (config.build?.sourcemap === false) {
2020
// eslint-disable-next-line no-console
2121
console.warn(
22-
"[Sentry SolidStart PLugin] You disabled sourcemaps with the `build.sourcemap` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the `build.sourcemap` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the `build.sourcemap` option to 'hidden' or undefined.",
22+
"[Sentry SolidStart Plugin] You disabled sourcemaps with the `build.sourcemap` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the `build.sourcemap` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the `build.sourcemap` option to 'hidden' or undefined.",
2323
);
2424
}
2525

2626
// TODO(v9): Remove this warning and print warning in case source map deletion is auto configured
2727
if (!sourceMapsUploadOptions?.filesToDeleteAfterUpload) {
2828
// eslint-disable-next-line no-console
2929
console.warn(
30-
"[Sentry SolidStart PLugin] The Sentry SDK has enabled source map generation for your SolidStart app. If you don't want to serve Source Maps to your users, either configure the `filesToDeleteAfterUpload` option with a glob to remove source maps after uploading them, or manually delete the source maps after the build. In future Sentry SDK versions source maps will be deleted automatically after uploading them.",
30+
"[Sentry SolidStart Plugin] The Sentry SDK has enabled source map generation for your SolidStart app. If you don't want to serve Source Maps to your users, either configure the `filesToDeleteAfterUpload` option with a glob to remove source maps after uploading them, or manually delete the source maps after the build. In future Sentry SDK versions source maps will be deleted automatically after uploading them.",
3131
);
3232
}
3333

0 commit comments

Comments
 (0)