ManUtopiK
ManUtopiK
NNuxt
Created by ManUtopiK on 7/16/2024 in #❓・help
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
NNuxt
Created by ManUtopiK on 4/25/2024 in #❓・help
How to check if a composable exists ?
I want to check if a composable exists in a component. With import { myComposable } from '#imports', importing the composable throw an error and break nuxt if the composable doesn't exist.
9 replies