Kuma Mieru Docs
Deploy

Cloudflare Workers

Cloudflare Workers deployment is not supported yet. This page lists the Cloudflare configuration and scripts in the repository.

Not supported yet

Cloudflare Workers deployment is not supported yet. Use Vercel or Netlify instead. For the discussion, see #88.

Cloudflare configuration in the repository

The web application keeps a Cloudflare build configuration based on OpenNext (@opennextjs/cloudflare). The files are in the apps/web directory:

FileContent
wrangler.jsoncWorker name uptime-kuma-pages, the nodejs_compat flag, the entry .open-next/worker.js and the asset directory .open-next/assets (binding ASSETS)
open-next.config.tsThe OpenNext configuration for Cloudflare

Scripts

Run these commands in the apps/web directory:

CommandAction
bun run build:cloudflareSets CF_DEPLOYMENT=true, runs the generate script, then builds with opennextjs-cloudflare build
bun run deploy:cloudflareSets CF_DEPLOYMENT=true and deploys with opennextjs-cloudflare deploy

If you try it yourself, import the repository on Cloudflare and set the root directory to apps/web. Then set the variables as described in Environment Variables.

Last updated on