prerenderer icon indicating copy to clipboard operation
prerenderer copied to clipboard

Caching to reduce build time and thus deployment time

Open hboon opened this issue 7 months ago • 0 comments

I've tested out using @prerenderer/rollup-plugin for Vite+Vue for a few pages and it works great. I'm considering expanding usage so it works for thousand of pages that rarely change. I deploy to render.com (which eventually runs vite build).

Is it possible to cache this somehow to reduce the deployment time?

I toyed with having an alternative vite.config.ts that includes the pre-rendering and copying over the index.html files into the source repo, so I can do this in the local dev machine and then deploying, thus not pre-rendering during the server-side build (vite build) but because the pre-rendered pages refer to the generated assets, that wouldn't work.

hboon avatar Jul 13 '25 03:07 hboon