Skip to content

SPA + SSR (pre-rendering) use case #1704

Discussion options

You must be logged in to vote

I don't want a Node.js server or SSR as I already have a completely separated backend with a REST API. I would like to serve the app as a completely static HTML/CSS/JS. But when I scaffold the app with Vike or Bâti, both come with the server part (I know I can remove it).

Good point (FYI @phonzammi @magne4000).

I noticed that Vike has a routing system and a guard that I would like to use. Does it make sense to use React Router or Tanstack Router for the SPA? Or can I use Vike's routing system for the SPA part as well? I'm concerned about the pageContext not being available in the SPA when using the guard. Is the authentication and login flow described in the auth page compatible with m…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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