Closed StefanGhiban closed 2 years ago
You can conditionally pass skip: true
in your prod server to skip SSR. It will return an empty index.html
that behaves as SPA:
const { html, headers } = await renderPage(url, {
manifest,
preload: true,
skip: url.includes('/admin/'),
request,
response,
})
Thanks!
I have been wondering if it is possible to configure the plugin in a way that some pages need ssr and some do not. For example, in an app, you might have a presentation part that needs good seo and other pages after a user logs in that do not need.