mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
- Create dashboard/public/ with favicon placeholder (required by Next.js standalone COPY in Dockerfile) - Make API rewrites dev-only (production uses Traefik IngressRoute) - Set ignoreBuildErrors for CI (TS strict mode in standalone build)
25 lines
474 B
JavaScript
25 lines
474 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
experimental: {
|
|
typedRoutes: false,
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
async rewrites() {
|
|
if (process.env.NODE_ENV === 'production') return []
|
|
return [
|
|
{
|
|
source: '/api/v1/:path*',
|
|
destination: 'http://localhost:8081/api/v1/:path*',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|