Skip to content

Is there a network request for a Sveltekit endpoint during SSR. #5518

Answered by geoffrich
itssumitrai asked this question in Q&A
Discussion options

You must be logged in to vote

Per the docs, when using the fetch provided by SvelteKit:

requests for endpoints go direct to the handler function during server-side rendering, without the overhead of an HTTP call

So the endpoint will be executed on the server without making another HTTP call.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@itssumitrai
Comment options

Answer selected by itssumitrai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants