import withMintelConfig from "@mintel/next-config"; /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, output: 'standalone', images: { loader: 'custom', loaderFile: './src/utils/imgproxy-loader.ts', }, async rewrites() { const umamiUrl = process.env.UMAMI_API_ENDPOINT || process.env.UMAMI_SCRIPT_URL || process.env.NEXT_PUBLIC_UMAMI_SCRIPT_URL || "https://analytics.infra.mintel.me"; const glitchtipUrl = process.env.SENTRY_DSN ? new URL(process.env.SENTRY_DSN).origin : "https://errors.infra.mintel.me"; return [ // Umami proxy rewrite removed in favor of app/stats/api/send/route.ts { source: "/errors/:path*", destination: `${glitchtipUrl}/:path*`, }, ]; }, async redirects() { return [ { source: '/case-studies/klz', destination: '/case-studies/klz-cables', permanent: true, }, ]; }, }; export default withMintelConfig(nextConfig);