next.config.js 329 B

1234567891011121314151617
  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. eslint: {
  13. ignoreDuringBuilds: true,
  14. },
  15. };
  16. module.exports = nextConfig;