- Clone this repository.
- Copy your edge functions to
./functionsdirectory. - [Optional] Modify the
./functions/main/index.tsto add custom request handling and routing logic. - Open
fly.tomland update the app name and optionally the region etc. - In your terminal, run
fly apps createand sepcify the app name you just set in yourfly.tomlfile. - Finally, run
fly deploy.
- Build the container image:
docker compose up --build - Visit http://localhost:8000/oak
File changes in the /functions directory will automatically be detected, except for the /main/index.ts function as it is a long running server.