Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

worker (Cloudflare Worker)

This package deploys a route-scoped Cloudflare Worker that serves the Party playground at:

  • https://caza.la/party

It does this by reverse-proxying to the upstream origin:

  • https://party.caza.la

The browser URL stays on caza.la/party... (no redirects to *.pages.dev, party.caza.la, or the upstream domain).

Configuration

Configured in wrangler.toml:

  • Worker name: cazala-party-worker
  • Route: caza.la/party*
  • Upstream: vars.UPSTREAM_ORIGIN (default: https://party.caza.la)
  • Response header: x-edge-proxy: cazala-party-worker

Scripts

  • Typecheck:
pnpm --filter worker run typecheck
  • Deploy:
pnpm --filter worker run deploy