@sentry/nextjs
Version:
Official Sentry SDK for Next.js
11 lines • 836 B
TypeScript
import type { ExportedNextConfig, NextConfigFunction, NextConfigObject, SentryWebpackPluginOptions, UserSentryOptions } from './types';
/**
* Add Sentry options to the config to be exported from the user's `next.config.js` file.
*
* @param exportedUserNextConfig The existing config to be exported prior to adding Sentry
* @param userSentryWebpackPluginOptions Configuration for SentryWebpackPlugin
* @param sentryOptions Optional additional options to add as alternative to `sentry` property of config
* @returns The modified config to be exported
*/
export declare function withSentryConfig(exportedUserNextConfig?: ExportedNextConfig, userSentryWebpackPluginOptions?: Partial<SentryWebpackPluginOptions>, sentryOptions?: UserSentryOptions): NextConfigFunction | NextConfigObject;
//# sourceMappingURL=withSentryConfig.d.ts.map