Use GitHub Actions to Stop Supabase Free Projects From Being Paused
Supabase automatically pauses free-tier projects that receive no API requests for seven consecutive days, which can disrupt side projects. To prevent this, developers can set up a scheduled GitHub Actions workflow that sends a lightweight REST API call to their Supabase database a few times a week. The workflow uses stored GitHub repository secrets to securely pass the Supabase project URL and anonymous public key, avoiding any hardcoded credentials. A simple curl command targeting any readable table is enough to register activity and reset the inactivity timer. Developers must also ensure Supabase Row Level Security policies permit anonymous SELECT access, otherwise the ping request will fail with an authentication error.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in