diff --git a/.env b/.env index 18646d9c..cd0f2135 100644 --- a/.env +++ b/.env @@ -5,8 +5,8 @@ WORDPRESS_APP_PASSWORD=DlJH 49dp fC3a Itc3 Sl7Z Wz0k' # Umami Analytics NEXT_PUBLIC_UMAMI_WEBSITE_ID=59a7db94-0100-4c7e-98ef-99f45b17f9c3 -NEXT_PUBLIC_UMAMI_SCRIPT_URL=https://analytics.infra.mintel.me/script.js +NEXT_PUBLIC_UMAMI_SCRIPT_URL=/stats/script.js # GlitchTip (Sentry protocol) SENTRY_DSN=https://c10957d0182245b1a2a806ac2d34a197@errors.infra.mintel.me/1 -NEXT_PUBLIC_SENTRY_DSN=https://c10957d0182245b1a2a806ac2d34a197@errors.infra.mintel.me/1 +NEXT_PUBLIC_SENTRY_DSN=https://c10957d0182245b1a2a806ac2d34a197@klz-cables.com/errors/1 diff --git a/next.config.mjs b/next.config.mjs index 1b427a47..f41e993b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -342,6 +342,18 @@ const nextConfig = { contentDispositionType: 'attachment', contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;", }, + async rewrites() { + return [ + { + source: '/stats/:path*', + destination: 'https://analytics.infra.mintel.me/:path*', + }, + { + source: '/errors/:path*', + destination: 'https://errors.infra.mintel.me/:path*', + }, + ]; + }, }; const nextIntlConfig = withNextIntl(nextConfig);