Call pre-rendering via the javascript api
See original GitHub issueHi,
According to the docs, it should be possible to use the npx vite-plugin-ssr prerender
command or use the javascript api import { prerender } from 'vite-plugin-ssr/cli
but the javascript api does not work for me. vite-plugin-ssr/cli
does not exist. Let me explain why we want to use this.
Our use case: We are building a website editor, the structure/content is saved in our Api as JSON and its possible to publish these changes afterwards (transform the JSON to a static generated website). We want to build a micro service that simply receives a JSON and outputs a list of static generated files wich we can fetch and put on a S3 bucket or anything else for example. We want to use a Cloudflare worker for this.
Do you need a reproduction repository? In my opinion its pretty clear what goes wrong.
Thanks. Kind regards, Sherin
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (10 by maintainers)
Top GitHub Comments
I’ll contact you shortly. Sure 😃, win-win situation I guess 😃.
Let me know if you still hit the problem