Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #35
This commit was merged in pull request #35.
This commit is contained in:
@@ -19,6 +19,18 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
],
|
||||
},
|
||||
async rewrites() {
|
||||
const rewrites = [];
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
rewrites.push({
|
||||
source: "/api/:path*",
|
||||
destination: "http://host.docker.internal:32080/api/:path*",
|
||||
});
|
||||
}
|
||||
|
||||
return rewrites;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user