fix: configure docker compose and fastify cors with .env file for local and production environment

This commit is contained in:
theoleuthardt 2025-02-24 13:39:07 +01:00
parent 4943846db7
commit d75f0c4626
5 changed files with 23 additions and 13 deletions

View file

@ -3,7 +3,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
env: {
backend_url: "http://localhost:4000",
backend_url: process.env.BACKEND_URL || "http://localhost:4000",
},
};