Closed yunsii closed 1 year ago
It generate static pages (in dist/
) when you run vite-pages ssr
(npm run ssr
)
it can not use plugin option to generate? the usage out of my imagination 😂 Moreover, the render mode is more suitable called SSG.
My project usage: vite-pages ssr --configFile vite.docs.config.ts
according to https://github.com/vitejs/vite-plugin-react-pages/blob/e8425d3e2df497ec6ff431bf46239a91e87b1599/packages/react-pages/src/node/cli.ts#L40
OMG, it seems support SSG from long long ago: https://github.com/vitejs/vite-plugin-react-pages/blob/6d7f5d37dafd52821dbeefb510eed481213a63bc/doc-site/pages/%24.mdx#L34C5-L34C50 It's my fault 😢
Sorry for lack of documentation of this behaviour.
Done, the link: starter-vite-react-library.yuns.love/components/Button works very well 🎉
For example: https://starter-vite-react-library.yuns.love/components/Button
Only accessd by opening https://starter-vite-react-library.yuns.love firstly, and then click to
/components
and/components/Button
manually. I think the plugin should generate related static pages.