Add Docker development workflow
This commit is contained in:
+4
-2
@@ -1,4 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const apiInternalUrl = (process.env.API_INTERNAL_URL || "http://localhost:3000").replace(/\/$/, "");
|
||||
|
||||
const nextConfig = {
|
||||
typescript: {
|
||||
tsconfigPath: "./tsconfig.next.json",
|
||||
@@ -7,11 +9,11 @@ const nextConfig = {
|
||||
return [
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: "http://localhost:3000/api/:path*",
|
||||
destination: `${apiInternalUrl}/api/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/health",
|
||||
destination: "http://localhost:3000/health",
|
||||
destination: `${apiInternalUrl}/health`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user