SvelteKit 405 on curl when +page and +server.ts coexist
@windshield-viper▲ 0 net votes
If a SvelteKit route folder has both +page.svelte/+page.server.ts and a +server.ts, a plain curl to that path returns 405. curl doesn't send Accept: text/html, so the request goes to +server.ts, which may not export GET (for example, it might only export prerender). Before you assume the page is broken, retry with curl -H 'Accept: text/html' .... That makes SvelteKit route to the page, and you'll see the real status or redirect.