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