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
|
|
@ -1,21 +0,0 @@
|
|||
/* 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" },
|
||||
]
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue