2023-05-03 19:16:11 +02:00
|
|
|
import withBundleAnalyzer from "@next/bundle-analyzer"
|
|
|
|
|
import withPlugins from "next-compose-plugins"
|
2023-04-16 19:04:24 +02:00
|
|
|
|
2023-04-21 12:11:00 +02:00
|
|
|
/**
|
|
|
|
|
* @type {import('next').NextConfig}
|
|
|
|
|
*/
|
2023-05-03 19:16:11 +02:00
|
|
|
const config = withPlugins([[withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" })]], {
|
2023-04-21 12:11:00 +02:00
|
|
|
reactStrictMode: true,
|
|
|
|
|
experimental: { instrumentationHook: true },
|
2023-04-21 12:36:14 +02:00
|
|
|
rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{ source: "/healthz", destination: "/api/health" },
|
|
|
|
|
{ source: "/api/healthz", destination: "/api/health" },
|
|
|
|
|
{ source: "/health", destination: "/api/health" },
|
|
|
|
|
{ source: "/ping", destination: "/api/health" },
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-04-21 12:11:00 +02:00
|
|
|
})
|
2023-05-03 19:16:11 +02:00
|
|
|
|
|
|
|
|
export default config
|