Proxy error when trying to redirect to external url
When using sveltekit and trying to do a simple redirect like
I'm getting the error:
Using the sveltekit template in
npm create cloudflare
The redirect works fine with npm run dev
but doesn't with npm run pages:dev
so likely a wrangler problem.1 Reply
From looking at this again seems like the proxy is trying to fetch the redirected page. Get different errors for trying to redirect to different sites.
I found
_redirects
but according to the docs for the cloudflare pages adapater (https://kit.svelte.dev/docs/adapter-cloudflare#notes) this doesn't effect server endpoints...
Maybe there is a proxy config setting or something simple i'm missing?SvelteKit docs
Cloudflare Pages • SvelteKit documentation