Skip to content

Why, with SSR, does the "/" route have to be prerendered (SSG) by default? #944

Answered by brandonroberts
nunoarruda asked this question in Q&A
Discussion options

You must be logged in to vote

The / is prerendered by default because most of the sites built with Analog are more content focused, so the / route is likely a landing page. You don't have to disable SSR to have a dynamically rendered / page.

Just pass an empty array to the routes array and it will use SSR for initial page requests and switch to CSR/SPA mode for navigation after that so you get the best of both.

Replies: 1 comment

Comment options

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