Files
klz-cables.com/next.config.mjs
Marc Mintel b05a21350c
Some checks failed
Build & Deploy / deploy (push) Failing after 3m45s
umami, glitchtip, redis
2026-01-18 15:37:51 +01:00

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,
}
);