Edge Functions

Deploying with GitHub Actions

Use GitHub Actions as a CI / CD pipeline to deploy your Edge Functions.

You can use the official setup-cli GitHub Action to run Supabase CLI commands in your GitHub Actions.

Sample Workflow#

The following GitHub Action deploys all Edge Functions any time code is merged into the main branch:

name: Deploy Function

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: your-project-id

steps:
- uses: actions/checkout@v3

- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase functions deploy --project-ref $PROJECT_ID

Declarative Configuration#

Individual function configuration like JWT verification and import map location can be set via the config.toml file.

[functions.hello-world]
verify_jwt = false

Resources#


We only collect analytics essential to ensuring smooth operation of our services.

Learn more