From 06d767b01e3b550775c912d8ecc1f74edc93438e Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 19 Nov 2025 18:34:41 -0300 Subject: [PATCH] chore: start with node when available --- scripts/start-web.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"