Skip to content
Discussion options

You must be logged in to vote

probably leaking server code into client and thus not hydrating.

if you are importing a server function from a file that also exports server-only things (here I assume export const auth = betterAuth(). will be server-only, then this export cannot be elided by our compiler and thus will fail on the client.

a solution can be to wrap the server-only things into a function with createServerOnlyFn

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by serkan-bayram
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