Hi,
I’m trying to host a static html site (no site generators, just plain vanilla html files) using workers sites on “domain.com”
I can see the files in WorkersKV.
In the wrangler.toml file I have the following config:
name = “domain .com”
account_id = “the correct account id number”
type = “webpack”
bucket = “./public”
entry-point = “./workers-site”
route = “domain . com/*”
zone_id = “the correct zone id”
In the workers tab of Cloudflare I have a route for “domain.com/*” set up.
I’ve also set up two A records in Cloudflare, one for naked domain and one for www, both pointing to a fake 192.2.0.1 address and proxied to Cloudflare.
However, the site is not resolving. I get a “__STATIC_CONTENT is not defined” error.
I can’t get index.html to load or a even a single .jpg image that I can see are uploaded to KV.
Any suggestions on what to look at next? There’s no mention of “__STATIC_CONTENT is not defined” in the documentation.