diff --git a/frontend/next.config.js b/frontend/next.config.js index 119e91d2..ae4454ac 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -1,5 +1,13 @@ const nextConfig = { output: 'standalone', + async rewrites() { + return [ + { + source: "/api/:path*", + destination: `${process.env.API_URL || "http://backend:8000"}/api/:path*`, + }, + ]; + }, }; export default nextConfig; diff --git a/frontend/next.config.ts b/frontend/next.config.ts deleted file mode 100644 index 2427d3c5..00000000 --- a/frontend/next.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - /* config options here */ - reactCompiler: true, - async rewrites() { - return [ - { - source: "/api/:path*", - destination: `${ - process.env.API_URL || "http://backend:8000" - }/api/:path*`, - }, - ]; - }, -}; - -export default nextConfig;