Supabase Edge Functions Skill
Goal
Develop and deploy serverless functions to the edge.
Instructions
- •Open the relevant rule file:
- •
supabase functions deploy-> .agent/rules/supabase/commands/functions/deploy.md - •
supabase functions new-> .agent/rules/supabase/commands/functions/new.md - •
supabase functions serve-> .agent/rules/supabase/commands/functions/serve.md - •
supabase functions list-> .agent/rules/supabase/commands/functions/list.md
- •
- •Use
functions newto create a boilerplate. - •Test locally using
functions servebefore deploying. - •Ensure
SUPABASE_ACCESS_TOKENis set if deploying via CI.
Examples
- •"Deploy the 'hello' function" -> Use
supabase functions deploy hello - •"Create a new edge function" -> Use
supabase functions new my-func - •"Run functions locally" -> Use
supabase functions serve