# Troubleshooting

## Troubleshooting

### Config Changes Do Not Appear
Veltro imports `.astro/config.generated.json`, not the TOML file directly.

1. Start development with `npm run dev`, which watches `config.toml`.
2. Confirm `.astro/config.generated.json` changed.
3. Restart the dev process after changing multilingual URL settings or `trailingSlash`.
4. Never edit the generated JSON by hand.

### A Page Or Section Is Missing
- Check `draft` on the page, item, and collection `-index` file.
- Check the section's `enable` value.
- Check the relevant menu item's `enable` value 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.astro`
- `src/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:

```bash
npm run astro-check
npm run build
```