fix: streamline deployment

This commit is contained in:
2026-02-10 21:40:04 +01:00
parent 2809d639f5
commit 8c36ab0459
3 changed files with 6 additions and 49 deletions

View File

@@ -1,9 +1,5 @@
import createNextIntlPlugin from 'next-intl/plugin';
import { withSentryConfig } from '@sentry/nextjs';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
import withMintelConfig from '@mintel/next-config';
const withNextIntl = createNextIntlPlugin();
@@ -339,18 +335,4 @@ const 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,
}
);
export default withMintelConfig(nextIntlConfig);