Skip to content

Deployment

PreviousNext

One OpenNext Worker on Cloudflare at space.databayt.org.

Space runs as a single Cloudflare Worker built by OpenNext — no container. It serves space.databayt.org.

Deploy

scripts/deploy-cloudflare.sh <env-file> all
ModeWhat it does
buildExports HEAD to a throwaway directory and runs the OpenNext build
previewRuns the real Worker locally in workerd against the real database
deployPushes secrets, populates the ISR cache and deploys
allAll of the above

The build runs in a throwaway directory so it can switch the Prisma generator to runtime = "workerd" without touching local next dev.

Caching

PieceBacked by
Incremental cacheKV (NEXT_INC_CACHE_KV)
Tag cacheSharded Durable Object
QueueIn memory

Public pages use time-based ISR and admin writes call revalidatePath.