fix: use conditionally the right url for backend in nextjs frontend

This commit is contained in:
theoleuthardt 2025-02-28 15:14:22 +01:00
parent 2c7043eec6
commit a3e7998d11
4 changed files with 13 additions and 5 deletions

4
.env
View file

@ -2,6 +2,4 @@
NODE_ENV=development
HOSTNAME=0.0.0.0
FRONTEND_PORT=3000
BACKEND_PORT=4000
NEXT_PUBLIC_BACKEND_URL=http://localhost:4000
CORS_ALLOWED_ORIGIN=http://localhost:3000
BACKEND_PORT=4000