Error when building with getWebRequest() in loader
I have this error when run
build
:
When i run dev
everything works fine4 Replies
rare-sapphire•6mo ago
this is a server only function that needs to be executed inside a server function
quickest-silverOP•6mo ago
So, loader function for createFileRoute is executed on client side?
rare-sapphire•6mo ago
it's executed on both.
during SSR on the server, subsequent requests on the client
quickest-silverOP•6mo ago
Oh ok, thanks. I move my code to createServerFn and i call this in loader function. Now i'ts working 🙂