Skip to content

Caching to reduce build time and thus deployment time #106

@hboon

Description

@hboon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions