Replies: 1 comment 1 reply
-
Where is the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy all,
My understanding of the SSR/CSR entries is that the entry-server.tsx is where server side code is loaded. Furthermore, in the route files, if we use
"use server;"
In a function, that will only be run on the server. Here is what I did....
entry-server.tsx
My ConfigurationService.ts
My SessionService uses Redis so it has a redisclient. I am seeing that turn up, albeit with an error, in my browser on the client side. I tracked it down to the "import { SameSiteOption } from "@services/SessionService";" which is only an enum.
This is my index.tsx route:
Any thoughts on why the client is loading server code?
Beta Was this translation helpful? Give feedback.
All reactions