fix: streamline deployment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user