Generate a static HTML or JSON page from raw strings in your Workers script.
index.js
is the content of the Workers script.
Live Demos are hosted on workers-tooling.cf/demos/static
:
Demo HTML | Demo json
To generate using wrangler
wrangler generate myApp https://github.com/cloudflare/worker-template-static
To deploy using serverless add a serverless.yml
file.