feat: respect PORT env variable for Coolify preview deployments

Nginx now listens on ${PORT} (default 7575) instead of hardcoded 7575,
so Coolify can inject a unique port per preview container. The internal
Next.js server is pinned to port 3000 to avoid conflicting with nginx.
This commit is contained in:
Thomas Camlong committed 2026-06-08 16:44:16 +02:00
1 parent a447a9f615
commit e004afa806
5 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
"dev": "pnpm with-env next dev",
"format": "oxfmt .",
"lint": "oxlint",
"start": "pnpm with-env next start",
"start": "pnpm with-env next start -p ${PORT:-3000}",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --"
},