You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make app with SSG/HTML-JS and SPA pages, so I don't need SSR output. But I can't configure exactly which steps I need.
My suggestion is to replace disableAutoFullBuild and prerenderer.partial with property like mode, which type is enum flag.
By default it will produce default SPA.
SSG of certain pages:
ssr({mode: RenderMode.SPA|RenderMode.SSG}),
Prerender (SSG) all pages. Omit server directory (place it to fs.mkdtemp or os.tmpdir or even node_modules/.vite/ while prerendering)
ssr({mode: RenderMode.SSG}),
Preserve SPA pages, prerender SSG pages, produce SSR build for SSR pages and corresponding server runtime.
I believe this flexible approach will make it clear how to use this plugin without looking for examples and why it's better than alternative solutions.
The text was updated successfully, but these errors were encountered:
Thanks for your hard work on this handy tool.
Description
I want to make app with SSG/HTML-JS and SPA pages, so I don't need SSR output. But I can't configure exactly which steps I need.
My suggestion is to replace
disableAutoFullBuild
andprerenderer.partial
with property likemode
, which type is enum flag.By default it will produce default SPA.
SSG of certain pages:
Prerender (SSG) all pages. Omit server directory (place it to
fs.mkdtemp
oros.tmpdir
or evennode_modules/.vite/
while prerendering)Preserve SPA pages, prerender SSG pages, produce SSR build for SSR pages and corresponding server runtime.
Manual build script
For consistency, introduce setting for every case, something like:
I believe this flexible approach will make it clear how to use this plugin without looking for examples and why it's better than alternative solutions.
The text was updated successfully, but these errors were encountered: