Bart
Bart
CDCloudflare Developers
Created by Bart on 5/24/2024 in #workers-help
Use getAssetFromKV with subdomain
Hi I am trying to use getAssetFromKV with a subdomain. I have it configured in my wrangler.toml
routes = [
{ pattern = "mydomain.app", custom_domain = true },
{ pattern = "*.mydomain.app", zone_name = "mydomain.app" },
]
routes = [
{ pattern = "mydomain.app", custom_domain = true },
{ pattern = "*.mydomain.app", zone_name = "mydomain.app" },
]
Unfortunetely, the default examplesfor getAssetFromKV do not seem to work. I.e. this one https://github.com/cloudflare/workers-sdk/tree/81dfb1746a2b2a17c06f809b2da9f937810ca701/packages/kv-asset-handler#es-modules Is any special setup needed?
4 replies