diff --git a/scripts/start-web.sh b/scripts/start-web.sh index 59ccb8f..15bb091 100644 --- a/scripts/start-web.sh +++ b/scripts/start-web.sh @@ -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"