chore: start with node when available

This commit is contained in:
Esdras Renan 2025-11-19 18:34:41 -03:00
parent c9c8b66ea3
commit 06d767b01e

View file

@ -50,4 +50,9 @@ else
fi
echo "[start-web] launching Next.js"
exec bun run start -- --port 3000
PORT=${PORT:-3000}
if command -v node >/dev/null 2>&1; then
exec node node_modules/next/dist/bin/next start --port "$PORT"
fi
# Fallback to bun if node is unavailable
exec bun run start -- --port "$PORT"