next.config.js 484 B

1234567891011121314151617181920212223242526
  1. /** @type {import('next').NextConfig} */
  2. const nextConfig = {
  3. async rewrites() {
  4. return [
  5. {
  6. source: "/api/:path*",
  7. destination: "http://backend:8000/api/:path*",
  8. },
  9. ];
  10. },
  11. reactStrictMode: true,
  12. experimental: {
  13. proxyTimeout: 6000000,
  14. },
  15. webpack(config) {
  16. config.module.rules.push({
  17. test: /\.svg$/i,
  18. issuer: /\.[jt]sx?$/,
  19. use: ["@svgr/webpack"],
  20. });
  21. return config;
  22. },
  23. };
  24. module.exports = nextConfig;