This project lets you expose a *.pages.dev URL while serving your app from an upstream Cloudflare Worker.
- Uses a catch-all Pages Function at
functions/[[path]].js - Proxies every request to
UPSTREAM_BASE_URL - Preserves method, path, query string, and body
- Create a new Pages project from this repo.
- Build command: leave empty.
- Build output directory:
public. - Add environment variable:
UPSTREAM_BASE_URL=https://your-worker.workers.dev
- Deploy.
npm install
npm run dev- Add your final
*.pages.devURL to Supabase allowed redirect/site URLs if needed. - This proxy project is intentionally separate from your main app repo to keep deployments simple.