Spaces:
No application file
No application file
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
async rewrites() { | |
return [ | |
{ | |
source: "/api/:path*", | |
destination: "http://backend:8000/api/:path*", | |
}, | |
]; | |
}, | |
reactStrictMode: true, | |
experimental: { | |
proxyTimeout: 6000000, | |
}, | |
webpack(config) { | |
config.module.rules.push({ | |
test: /\.svg$/i, | |
issuer: /\.[jt]sx?$/, | |
use: ["@svgr/webpack"], | |
}); | |
return config; | |
}, | |
}; | |
module.exports = nextConfig; | |