TanStackT
TanStack7mo ago
3 replies
yucky-gold

How to use Static Prerendering + SPA

I am working on a web app and it has some public pages that I want to prerender (like home page, terms & privacy policy, login page), and private pages that the user must login to access that I want to render as a SPA
basically:
-----------------------
| /index |
| /login |__ Static Prerendering
| /terms-of-service |
| /privacy-policy |
-----------------------

-----------------------
| /app/* |__
SPA
-----------------------

how to properly configure it?
the 'prerender.routes' options in vite.config.ts mentioned in the docs is not defined!
image.png
Was this page helpful?