From cc0d92cd7872c5b36dffa591f04688290564c23f Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 18 May 2025 14:16:23 +0800 Subject: [PATCH] . --- supabase/kong/wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/kong/wrapper.sh b/supabase/kong/wrapper.sh index 55fcb36..642811c 100644 --- a/supabase/kong/wrapper.sh +++ b/supabase/kong/wrapper.sh @@ -34,8 +34,8 @@ export SUPABASE_SERVICE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdX # --- 等待 postgrest (通过 Kong proxy) 可访问 --- echo "[kong] Waiting for PostgREST to be reachable via Kong..." -until curl -s http://localhost:5000/rest/v1/ >/dev/null 2>&1; do - echo "[kong] Still waiting for PostgREST..." +until curl -s -H "apikey: $SUPABASE_ANON_KEY" http://localhost:8000/rest/v1/ >/dev/null; do + echo "Waiting for API /rest/v1/ ..." sleep 1 done echo "[kong] PostgREST is reachable. Starting Kong..."