@sentry/nextjs
Version:
Official Sentry SDK for Next.js
15 lines (14 loc) • 693 B
TypeScript
import { SentryBuildOptions } from '../types';
import { DEFAULT_SERVER_EXTERNAL_PACKAGES } from './constants';
export { DEFAULT_SERVER_EXTERNAL_PACKAGES };
/**
* Wraps a user's Next.js config and applies Sentry build-time behavior (instrumentation + sourcemap upload).
*
* Supports both object and function Next.js configs.
*
* @param nextConfig - The user's exported Next.js config
* @param sentryBuildOptions - Options to configure Sentry's build-time behavior
* @returns The wrapped Next.js config (same shape as the input)
*/
export declare function withSentryConfig<C>(nextConfig?: C, sentryBuildOptions?: SentryBuildOptions): C;
//# sourceMappingURL=index.d.ts.map