ManUtopiK
Programmatically refresh nuxt-content generated pages ?
We can run a nuxt-content website in a cloud runner like Vercel with the edge-rendering mode : https://nuxt.com/docs/guide/concepts/rendering#edge-side-rendering
With this mode, we can provide API route.
What I try to do is to provide a
/api/gitlab/webhook
route that will be triggered by a gitlab webhook when a push is made to the repository.
Vercel can already rebuild the site when a push is made with a gitlab webhook, but Vercel re-install the packages and simply do a pnpm build
. As the server is running, I wonder if we can just rebuild the generated pages, and assets, not rebuilding the entire site ?2 replies