fix: nextjs only reads .env files when using NEXT_PUBLIC_ in front of variables + definition of right .env of root

This commit is contained in:
theoleuthardt 2025-02-24 15:50:08 +01:00
parent 51befce05d
commit 0d92719258
5 changed files with 20 additions and 3 deletions

View file

@ -9,7 +9,7 @@ services:
- NODE_ENV=${NODE_ENV}
- HOSTNAME=${HOSTNAME}
- PORT=${FRONTEND_PORT}
- BACKEND_URL=${BACKEND}
- NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}
ports:
- "${FRONTEND_PORT}:3000"
restart: unless-stopped