#!/bin/bash set -e # --- 等待 Kong 代理接口可用(假设它暴露在 127.0.0.1:8000)--- echo "[chatai-ui] Waiting for Kong to be ready at http://localhost:8000/..." until curl -sSf http://localhost:8000/ > /dev/null; do echo "[chatai-ui] Kong not ready yet, retrying..." sleep 1 done echo "[chatai-ui] Kong is ready." # --- 切换到项目目录并启动 next.js --- cd /supabase/chatai-ui exec npm run start