From f3ec43bb2b741505a8edc46469eac4ba04128b2a Mon Sep 17 00:00:00 2001 From: MarkLo Date: Fri, 21 Nov 2025 10:23:21 +0800 Subject: [PATCH] --- frontend/next.config.js | 8 ++++++++ frontend/next.config.ts | 18 ------------------ 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 frontend/next.config.ts 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;