From f77aa0358eb873af7d2024794199a369e73ed0f7 Mon Sep 17 00:00:00 2001 From: Syasya Date: Tue, 26 Aug 2025 09:16:45 +0800 Subject: [PATCH] rename backend api --- next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next.config.js b/next.config.js index 5e064b1..c02375b 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,14 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + async rewrites() { + return [ + { + source: "/api/:path*", + destination: "http://backend:8000/:path*", // internal Docker hostname + }, + ] + }, }; module.exports = nextConfig;