html-ui.deploy
As of snapshot FWBeS680eO. See the latest
- description
- (en) Deploys html-ui to the Cloudflare Worker definy-html, a mirror of the public server with its own D1 database definy-html. Its Cron trigger pulls from the public server every minute, a little per run (at most 5 events and 50 contents), then caches at most 2 commits (definy.warm-commit-cache) to stay within the CPU time limit of the Workers Free plan. Set the value on the page of definy.cloudflare-api-token first (Workers Scripts and D1 edit permissions)
- type
@wasi.io
- expression
@definy.deploy-service-worker( worker_name: "definy-html", database_name: "definy-html", cron: "* * * * *", api_token: @definy.cloudflare-api-token, handler: quote({ fetch: fn(request$0) => @html-ui.handle(editable: false, request: $0), scheduled: fn(time_ms$1) => @definy.service-io-then-respond( io: @"vXO0I9e1TRRv8-GIhR8E94Tv8szgVwYzJl0fbhffwvs"(remote: "https://definy.narumincho.com", limit: 5, content_limit: 50), respond: fn(response$2) => @"3c3kONpTqMS0XR8LZltRlgnJXavfRR-zdhKgrhkEN5w"( limit: 2, then: fn(count$3) => #done<@definy.service-io>(#respond($2)) ) ) }) )
- visibility
- public
html-ui.deploy (project html-ui, branch edit-check, snapshot FWBeS680eOlm6c2NOnWcarkR0iM2Jt6ap5-Rv0zDiXk) id: 8ZILUFDoKw9Yh2NNuQ8q9XFXo75f-v044uIEiOfr7PM content hash: _mhiPOVu6RmSdBz8Vc4Usoht8Y9ME9M5C_HlsyFXRrw
Run in this browser
Compiles and runs the whole program in this browser. HTTP requests are sent by this browser, so servers that do not allow CORS (such as the Cloudflare API) cannot be reached. The secrets are the values entered in this browser.