refactor: change next config file to mjs
This commit is contained in:
parent
11d347965c
commit
0742f20372
2 changed files with 6 additions and 7 deletions
20
next.config.mjs
Normal file
20
next.config.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import withBundleAnalyzer from "@next/bundle-analyzer"
|
||||
import withPlugins from "next-compose-plugins"
|
||||
|
||||
/**
|
||||
* @type {import('next').NextConfig}
|
||||
*/
|
||||
const config = withPlugins([[withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" })]], {
|
||||
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" },
|
||||
]
|
||||
},
|
||||
})
|
||||
|
||||
export default config
|
||||
Loading…
Add table
Add a link
Reference in a new issue