diff --git a/packages/e2e-tests/test-applications/create-next-app/sentry.server.config.ts b/packages/e2e-tests/test-applications/create-next-app/sentry.server.config.ts index e3d70f17e126..b5673c598d71 100644 --- a/packages/e2e-tests/test-applications/create-next-app/sentry.server.config.ts +++ b/packages/e2e-tests/test-applications/create-next-app/sentry.server.config.ts @@ -18,6 +18,8 @@ Sentry.init({ // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps + + integrations: [new Sentry.Integrations.LocalVariables()], }); Sentry.addGlobalEventProcessor(event => { diff --git a/packages/nextjs/src/index.types.ts b/packages/nextjs/src/index.types.ts index aca9f9d48211..0b115d213d5d 100644 --- a/packages/nextjs/src/index.types.ts +++ b/packages/nextjs/src/index.types.ts @@ -9,18 +9,19 @@ export * from './edge'; import type { Integration, Options, StackParser } from '@sentry/types'; -import type { BrowserOptions } from './client'; -import * as clientSdk from './client'; -import type { EdgeOptions } from './edge'; -import * as edgeSdk from './edge'; -import type { NodeOptions } from './server'; -import * as serverSdk from './server'; +import type * as clientSdk from './client'; +import type * as edgeSdk from './edge'; +import type * as serverSdk from './server'; /** Initializes Sentry Next.js SDK */ -export declare function init(options: Options | BrowserOptions | NodeOptions | EdgeOptions): void; +export declare function init( + options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions | edgeSdk.EdgeOptions, +): void; // We export a merged Integrations object so that users can (at least typing-wise) use all integrations everywhere. -export const Integrations = { ...clientSdk.Integrations, ...serverSdk.Integrations, ...edgeSdk.Integrations }; +export declare const Integrations: typeof clientSdk.Integrations & + typeof serverSdk.Integrations & + typeof edgeSdk.Integrations; export declare const defaultIntegrations: Integration[]; export declare const defaultStackParser: StackParser;