2023-05-03 19:16:11 +02:00
|
|
|
import withBundleAnalyzer from "@next/bundle-analyzer"
|
|
|
|
|
import withPlugins from "next-compose-plugins"
|
2023-05-03 19:16:12 +02:00
|
|
|
import { env } from "./env.mjs"
|
2023-04-16 19:04:24 +02:00
|
|
|
|
2023-04-21 12:11:00 +02:00
|
|
|
/**
|
|
|
|
|
* @type {import('next').NextConfig}
|
|
|
|
|
*/
|
2024-09-25 15:26:30 +05:30
|
|
|
const config = withPlugins(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
withBundleAnalyzer({
|
|
|
|
|
enabled: env.ANALYZE,
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
{
|
|
|
|
|
reactStrictMode: true,
|
|
|
|
|
logging: {
|
|
|
|
|
fetches: {
|
|
|
|
|
fullUrl: true,
|
|
|
|
|
},
|
2024-05-30 18:08:07 +02:00
|
|
|
},
|
2024-09-25 15:26:30 +05:30
|
|
|
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" },
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
// Add the eslint configuration here
|
|
|
|
|
eslint: {
|
|
|
|
|
// Warning: This allows production builds to successfully complete even if
|
|
|
|
|
// your project has ESLint errors.
|
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
|
},
|
|
|
|
|
// Add the output setting here
|
|
|
|
|
output: 'standalone',
|
|
|
|
|
}
|
|
|
|
|
)
|
2023-05-03 19:16:11 +02:00
|
|
|
|
|
|
|
|
export default config
|