@c-code/content
v1.2.0
Published
Trae el contenido de un sitio desde el CMS de C-Code (Firestore) antes del build.
Readme
@c-code/content
Brings a site's content from the C-Code CMS (Firestore) into its folder before the build.
"scripts": {
"content": "c-code-content pull --site xora-spa --project c-code-bf1fd",
"prebuild": "npm run content",
"prestart": "npm run content"
}- Writes: the JSON files of each collection, plus the files the site's scope generates (
prerender-routes.txt,sitemap.xml). - Reads: Firestore's public REST API, so it needs no credentials.
- Fails: if Firestore cannot be read. The build then stops, and the last published version stays online.
