Chang
Chang
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
losing host header in wrangler
it seems a bug to me unless there is an easy way to get full host url in local wrangler - can someone please help me? This has become a huge blocker where I might have to go back to plain old nodejs somewhere else instead of worker static assets. I dont want my integration tests to not run similar to production environment as this is during login flows and can't risk missing a bug.
3 replies
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
losing host header in wrangler
so Caddy is proxying to worker properly - but any header that has "something.mydomain.app" gets replaced to "mydomain.app"
3 replies
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
worker static assets
@Walshy thank you and I asked more follow-up above. Just forgot to at mention. Sorry...
7 replies
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
worker static assets
so basically in my worker code if it's not /login* then I am trying to proxy - which works fine in theory, but just that it doesn't have the real host with all the subdomain info in it. So that's a blocker for me.
7 replies
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
worker static assets
I really want my integration tests to work well and not have too much of config differences between prod and local. The other way use Caddy or some reverse proxy and proxy /login paths to wrangler port and other paths to my local development server(origin server) What do people do for making their integration tests work well and also ease the development burden on engineers? I am new to all this. So learning a lot but the local dev kind of is getting ugly.
7 replies
CDCloudflare Developers
Created by Chang on 12/24/2024 in #workers-help
worker static assets
thanks!! I tried to work around with proxy and it fails with this error now: https://customer1.my.example.app:8787/ If I request for above const url = new URL(request.url) -> this always returns my.example.app So even my proxying is broken. Is this a limitation in wrangler where we can't get full host url? I logged the whole of request in console and I don't find "customer1.my.example.app" anywhere
7 replies
CDCloudflare Developers
Created by Chang on 2/17/2024 in #workers-help
workers site caching and DDoS
Thanks!
3 replies
CDCloudflare Developers
Created by Chang on 2/17/2024 in #workers-help
workers site caching and DDoS
I tried Cache Everything page rule for *.mydomain.com but it doesn't work as expected. My worker is still being hit.
3 replies