Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Failing after 1m3s
Build & Deploy / 🏗️ Build (push) Failing after 3m5s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
32 lines
818 B
JavaScript
32 lines
818 B
JavaScript
import withMintelConfig from "@mintel/next-config";
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
output: 'standalone',
|
|
transpilePackages: ["@mintel/pdf"],
|
|
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 [
|
|
{
|
|
source: "/stats/:path*",
|
|
destination: `${umamiUrl}/:path*`,
|
|
},
|
|
{
|
|
source: "/errors/:path*",
|
|
destination: `${glitchtipUrl}/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMintelConfig(nextConfig);
|