Add Docker development workflow

This commit is contained in:
2026-07-22 22:42:28 +02:00
parent 00cb07f848
commit c991f493da
6 changed files with 127 additions and 5 deletions
+4 -2
View File
@@ -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`,
},
];
},