Troubleshooting
Config Changes Do Not Appear
Veltro imports .astro/config.generated.json, not the TOML file directly.
- Start development with
npm run dev, which watchesconfig.toml. - Confirm
.astro/config.generated.jsonchanged. - Restart the dev process after changing multilingual URL settings or
trailingSlash. - Never edit the generated JSON by hand.
A Page Or Section Is Missing
- Check
drafton the page, item, and collection-indexfile. - Check the section’s
enablevalue. - Check the relevant menu item’s
enablevalue only if the page exists but is absent from navigation. - Open the route file and confirm the section component is rendered.
Localized Links Are Wrong
Check src/config/language.json, [settings.multilingual] in config.toml, and the matching content and menu files for the language. Use getLocaleUrlCTM() for links created in components.
An Interaction Does Not Initialize
Check whether the relevant markup exists before debugging the script. Accordions, tabs, selects, and tooltips load dynamically, some hover features wait for the first pointer interaction, and reduced-motion or coarse-pointer conditions intentionally disable some effects.
Relevant files include:
src/layouts/components/widgets/GlobalScripts.astrosrc/layouts/components/global/header/Header.astro- the specific widget or section component
Build Cache Rename Error
Do not run astro check and astro build simultaneously in the same working tree. Both can write Astro’s generated content cache. Run them sequentially:
npm run astro-checknpm run build