diff --git a/web/next.config.js b/web/next.config.js index 9ce1b35644..ef3c353b09 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -63,6 +63,26 @@ const nextConfig = { }, ] }, + async rewrites() { + return [ + { + source: '/console/api/:path*', + destination: 'http://api:5001/console/api/:path*', + }, + { + source: '/api/:path*', + destination: 'http://api:5001/api/:path*', + }, + { + source: '/v1/:path*', + destination: 'http://api:5001/v1/:path*', + }, + { + source: '/files/:path*', + destination: 'http://api:5001/files/:path*', + }, + ] + }, output: 'standalone', }