next.config.js 285 B

123456789101112131415
  1. /** @type {import('next').NextConfig} */
  2. const nextConfig = {
  3. output: "standalone",
  4. async rewrites() {
  5. return [
  6. {
  7. source: '/api/:path*',
  8. destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`,
  9. },
  10. ];
  11. },
  12. };
  13. module.exports = nextConfig;