spawner/frontend/next.config.mjs
2026-01-30 18:00:41 +01:00

17 lines
372 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
async rewrites() {
return [
{
source: '/api/:path*',
destination: process.env.NEXT_PUBLIC_API_URL
? `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`
: 'http://localhost:5000/api/:path*',
},
];
},
};
export default nextConfig;