Sveltekit issue when proxying a DNS subdomain

What is the name of the domain?

What is the error message?

Internal server error

What is the issue you’re encountering

Sveltekit app behind a proxied DNS subdomain returns a 500 server error when trying to access to an specific URI. Error disappeared after returning subdomain to DNS only mode

I’ve seen this behavior with SvelteKit apps behind proxied subdomains too. Often it’s related to how Cloudflare handles headers or caching when proxying. Switching to DNS-only bypasses that layer, which is why the error disappears. You might want to check if certain Cloudflare features (like WAF, Rocket Loader, or Page Rules) are conflicting with your app’s dynamic routing. Testing with minimal settings helps isolate it.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.