This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import createNextIntlPlugin from 'next-intl/plugin';
|
||||
|
||||
import { withSentryConfig } from '@sentry/nextjs';
|
||||
|
||||
const withNextIntl = createNextIntlPlugin();
|
||||
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
@@ -19,5 +20,21 @@ const nextConfig = {
|
||||
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
|
||||
},
|
||||
};
|
||||
|
||||
export default withNextIntl(nextConfig);
|
||||
|
||||
const nextIntlConfig = withNextIntl(nextConfig);
|
||||
|
||||
// GlitchTip is Sentry-compatible; we use the Sentry Next.js SDK.
|
||||
// Source map upload is optional; we keep this config minimal.
|
||||
export default withSentryConfig(
|
||||
nextIntlConfig,
|
||||
{
|
||||
silent: !process.env.CI,
|
||||
// Keep bundle size down; remove SDK debug logging.
|
||||
treeshake: { removeDebugLogging: true },
|
||||
},
|
||||
// Sentry Webpack plugin options (not needed unless you upload sourcemaps)
|
||||
{
|
||||
// no sourcemap upload by default
|
||||
authToken: undefined,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user