21 lines
663 B
JavaScript
21 lines
663 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: process.env.ANALYZE === "true",
|
|
})
|
|
const withPlugins = require("next-compose-plugins")
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
module.exports = withPlugins([[withBundleAnalyzer]], {
|
|
reactStrictMode: true,
|
|
experimental: { instrumentationHook: true },
|
|
rewrites() {
|
|
return [
|
|
{ source: "/healthz", destination: "/api/health" },
|
|
{ source: "/api/healthz", destination: "/api/health" },
|
|
{ source: "/health", destination: "/api/health" },
|
|
{ source: "/ping", destination: "/api/health" },
|
|
]
|
|
},
|
|
})
|