Frontend Proxy

Frontend Proxy Layer on Cloudflare Workers

Cloudflare Workers is used as middleware to run a simple reverse proxy. This wraps the Marketing Site, Docs Site, and the main web app (Expo web export) behind the single pivot.app domain.

  • Any route starting with /_/ (including the trailing slash!) -> Expo web app
  • Various routes such as /login -> Expo web app
  • /docs -> Docs Site
  • Default if not rewritten to Expo web app or Docs Site -> Marketing Site

The Docs site and web app use Cloudflare page rules for the purpose of redirecting purpose of redirecting requests that were not proxied through the reverse proxy described above to the reverse proxy.