SentinelAI / frontend /run-dev.sh
iitian's picture
Sync SentinelAI project and add Hugging Face Docker Space layout.
8b3905d
raw
history blame contribute delete
449 Bytes
#!/usr/bin/env bash
# Next.js 15 + Node 24 breaks semver in `next dev`. Use Homebrew Node 22 for this project.
set -euo pipefail
cd "$(dirname "$0")"
for prefix in /opt/homebrew/opt/node@22 /usr/local/opt/node@22; do
if [[ -x "$prefix/bin/node" ]]; then
export PATH="$prefix/bin:$PATH"
break
fi
done
echo "Node: $(command -v node) ($(node -v))"
export NEXT_PUBLIC_API_URL="${NEXT_PUBLIC_API_URL:-http://127.0.0.1:8000}"
exec npm run dev