fix: add legacy PORT env fallback for server port configuration

This commit is contained in:
Haileyesus
2026-03-12 13:13:30 +03:00
parent 1995a411d2
commit e644f5cb7d
3 changed files with 6 additions and 4 deletions

View File

@@ -14,7 +14,8 @@ export default defineConfig(({ mode }) => {
const host = normalizeLoopbackHost(configuredHost)
const proxyHost = getConnectableHost(configuredHost)
const serverPort = env.SERVER_PORT || 3001
// TODO: Remove support for legacy PORT variables in all locations in a future major release, leaving only SERVER_PORT.
const serverPort = env.SERVER_PORT || env.PORT || 3001
return {
plugins: [react()],