Where is static-file hosting documented?
I have static files I want to host and the
create-cloudflare
script has an example for that, but in its wrangler.jsonc
it doesn't include a main
key which, according to the note in https://developers.cloudflare.com/workers/wrangler/configuration/#inheritable-keys is required.
I'm assuming it's not required in this case because it's not a worker. But then, what is this exactly?Cloudflare Docs
Configuration
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
1 Reply
You'll need a Static Assets worker -> https://developers.cloudflare.com/workers/static-assets/
See https://developers.cloudflare.com/workers/static-assets/get-started/#1-create-a-new-worker-project-using-the-cli