41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
import createNextIntlPlugin from 'next-intl/plugin';
|
|
import { withSentryConfig } from '@sentry/nextjs';
|
|
|
|
const withNextIntl = createNextIntlPlugin();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'klz-cables.com',
|
|
port: '',
|
|
pathname: '/wp-content/uploads/**',
|
|
},
|
|
],
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
|
|
},
|
|
};
|
|
|
|
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,
|
|
}
|
|
);
|