#!/usr/bin/env bash # 开发:API(热重载) + Next dev;浏览器打开 http://localhost:3000 set -euo pipefail cd "$(dirname "$0")" export PORT="${PORT:-8001}" if [[ -x ".venv/bin/python" ]]; then PY=".venv/bin/python" else PY=python3 command -v python3 >/dev/null 2>&1 || PY=python fi exec "$PY" scripts/launch.py --dev --port "$PORT"