Skip to content

Commit e69c68d

Browse files
committed
fixup! fix(astro): Do not show warnings for valid options
1 parent 367afd1 commit e69c68d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/astro/src/integration/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
4343
telemetry,
4444
silent,
4545
errorHandler,
46-
...doNotUseTheseOptions
46+
...deprecatedOptions
4747
} = options;
4848

49-
const doNotUseTheseOptionsKeys = Object.keys(doNotUseTheseOptions);
50-
if (doNotUseTheseOptionsKeys.length > 0) {
49+
const deprecatedOptionsKeys = Object.keys(deprecatedOptions);
50+
if (deprecatedOptionsKeys.length > 0) {
5151
logger.warn(
52-
`You passed in additional options (${doNotUseTheseOptionsKeys.join(
52+
`You passed in additional options (${deprecatedOptionsKeys.join(
5353
', ',
5454
)}) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your \`sentry.client.config.(js|ts)\` or \`sentry.server.config.(js|ts)\` files.`,
5555
);

0 commit comments

Comments
 (0)