This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[✨] vite ssr mode: pre-load entry.ssr.tsx #64
Labels
[STAGE-2] incomplete implementation
Remove this label when implementation is complete
[STAGE-2] not fully covered by tests yet
Remove this label when tests are verified to cover the implementation
[STAGE-2] unresolved discussions left
Remove this label when all critical discussions are resolved on the issue
[STAGE-3] docs changes not added yet
Remove this label when the necessary documentation for the feature / change is added
[STAGE-3] missing 2 reviews for RFC PRs
Remove this label when at least 2 core team members reviewed and approved the RFC implementation
Is your feature request related to a problem?
I would like to run server code inside the qwik-city server.
👉 Obviously I can put it in the server entry, but I also want to run in dev ssr mode.
👉 Obviously I can call the server entry point from
entry.ssr.tsx
which is called from both places, but then Vite will only execute that on first render.Describe the solution you'd like
Is it possible to load the entry code before vite calls it? That way, it also speeds up the first SSR render.
Describe alternatives you've considered
Maybe an option to define a server-code entry point?
Additional context
No response
The text was updated successfully, but these errors were encountered: