Update default API backend URL to production endpoint

This commit is contained in:
Daniel Alves Rösel
2026-04-02 22:32:23 +04:00
committed by GitHub

View File

@@ -4,9 +4,7 @@ import path from "node:path";
const nextConfig: NextConfig = {
outputFileTracingRoot: path.join(process.cwd(), "../.."),
async rewrites() {
// In Docker (Dokploy/compose) the backend container is always reachable at cvfs-backend:8080.
// Override with API_BASE_URL for local dev (e.g. http://localhost:9812).
const backend = process.env.API_BASE_URL ?? "http://cvfs-backend:8080";
const backend = process.env.API_BASE_URL ?? "https://api.cv.alves.world";
return [{ source: "/api/:path*", destination: `${backend}/api/:path*` }];
},
};