Veltro Theme Documentation
Generated Config From TOML
Veltro converts its editable TOML configuration to JSON.
- Source:
src/config/config.toml - Generated output:
.astro/config.generated.json - Generator:
scripts/toml-watcher.mjs
Components and utilities import the generated file:
import config from ".astro/config.generated.json";Relevant Scripts
"dev": "npm run toml:watch -- --watch & astro dev","toml:watch": "node scripts/toml-watcher.mjs","build": "npm run toml:watch && astro build && npm run remove-draft-from-sitemap"In development, the watcher regenerates JSON whenever the TOML source changes. Production builds regenerate it before Astro runs.
Always edit src/config/config.toml. Treat .astro/config.generated.json as generated output.