refactor: update next.config to typescript
This commit is contained in:
parent
f8d9deae5e
commit
be58a2fe3e
4 changed files with 28 additions and 42 deletions
21
next.config.ts
Normal file
21
next.config.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import withBundleAnalyzer from "@next/bundle-analyzer"
|
||||
import { type NextConfig } from "next"
|
||||
|
||||
import { env } from "./env.mjs"
|
||||
|
||||
const config: NextConfig = {
|
||||
reactStrictMode: true,
|
||||
logging: {
|
||||
fetches: {
|
||||
fullUrl: true,
|
||||
},
|
||||
},
|
||||
rewrites: async () => [
|
||||
{ source: "/healthz", destination: "/api/health" },
|
||||
{ source: "/api/healthz", destination: "/api/health" },
|
||||
{ source: "/health", destination: "/api/health" },
|
||||
{ source: "/ping", destination: "/api/health" },
|
||||
],
|
||||
}
|
||||
|
||||
export default env.ANALYZE ? withBundleAnalyzer({ enabled: env.ANALYZE })(config) : config
|
||||
Loading…
Add table
Add a link
Reference in a new issue