I often use elysia alongside eden embedded inside sveltekit. Sveltekit provides a custom fetch function inside load functions that , when used with plain relative paths e.g: fetch('/api') will call the server-side function directly when performing server-side rendering. More info here
Eden treaty 2 transforms the URL passed into treaty() by appending https:// to it. This disables sveltekit's features when using its fetch. To fix this, remove any transformation functions inside eden treaty 2 or expose configuration options to do so.
I often use elysia alongside eden embedded inside sveltekit. Sveltekit provides a custom
fetch
function inside load functions that , when used with plain relative paths e.g:fetch('/api')
will call the server-side function directly when performing server-side rendering. More info hereEden treaty 2 transforms the URL passed into treaty() by appending
https://
to it. This disables sveltekit's features when using its fetch. To fix this, remove any transformation functions inside eden treaty 2 or expose configuration options to do so.