supabase / self-hosted-edge-functions-demo

A demo of how to self-host Supabase Edge Functions on Fly.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self-Host Supabase Edge Functions Demo

Deploy to Fly.io

  • Clone this repository.
  • Copy your edge functions to ./functions directory.
  • [Optional] Modify the ./functions/main/index.ts to add custom request handling and routing logic.
  • Open fly.toml and update the app name and optionally the region etc.
  • In your terminal, run fly apps create and sepcify the app name you just set in your fly.toml file.
  • Finally, run fly deploy.

Run locally

File changes in the /functions directory will automatically be detected, except for the /main/index.ts function as it is a long running server.

About

A demo of how to self-host Supabase Edge Functions on Fly.io


Languages

Language:TypeScript 96.5%Language:Dockerfile 3.5%