Documentation

Quickstart

Bring up ApiAny on Cloudflare Pages Edge Runtime with Supabase-backed data access.

1. Install dependencies

Run `pnpm install` in the project root.

Use `pnpm run cf:build` to verify the Pages build output can be generated locally.

2. Configure environment variables

Set `SUPABASE_URL`, `SUPABASE_ANON_KEY`, and `SUPABASE_SERVICE_ROLE_KEY` for database access over HTTP.

Configure payment and email providers such as Stripe, Creem, and Resend before testing checkout or email verification flows.

3. Deploy to Cloudflare Pages

Use the Pages build chain based on `@cloudflare/next-on-pages`.

After build succeeds, run `pnpm run cf:deploy` to upload the `.vercel/output/static` bundle to Pages.

If you want the full docs system back later, the safer path is a static export pipeline instead of reading local files at runtime on Edge.