File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - name : Ping Supabase via backend
1414 run : |
1515 curl -sf --max-time 30 \
16- "${{ secrets.BACKEND_URL }}/api/test-supabase " \
16+ "${{ secrets.BACKEND_URL }}/api/health?ping_db=true " \
1717 || echo "Ping failed, but workflow won't block"
Original file line number Diff line number Diff line change 11# main.py, entry point.
22
33from datetime import timedelta
4- from flask import Flask , jsonify
4+ from flask import Flask , jsonify , request
55from flask_cors import CORS
66from flask_jwt_extended import JWTManager
77from dotenv import load_dotenv
3333
3434@app .route ("/api/health" , methods = ["GET" ])
3535def health ():
36+ if request .args .get ("ping_db" ):
37+ from config import supabase
38+ supabase .from_ ("users" ).select ("id" ).limit (1 ).execute ()
3639 return jsonify ({"status" : "ok" })
3740
3841
You can’t perform that action at this time.
0 commit comments