TanStackT
TanStack3mo ago
3 replies
efficient-indigo

CSR/SSR/Prerendering per route

How can I create an application that combines all these renderings and defines them per route?

For example, I have the following routes:
-
/
: this must be prerendered since it is the home page
- /app/* everything inside of
/app
must be CSR, like a SPA

For the prerendering I believe I can use something like:

    tanstackStart({
      pages: [
        {
          path: "/",
          prerender: { enabled: true },
        },
      ],
    }),

But what about SPA for all routes under
/app
?
Was this page helpful?