chore: start with node when available
This commit is contained in:
parent
c9c8b66ea3
commit
06d767b01e
1 changed files with 6 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue