andwati 8da5d372d5 Fix: content changes weren't showing up without a dev server restart
toml-content-loader.ts only read content/ once in load(), so a new
entry created through Strapi (or any hand-edit) sat on disk correctly
but never appeared on the site until astro dev was restarted. Astro's
content layer only auto-refreshes for loaders that wire up the
watcher it hands them.

Refactored the read into a loadAll() function called both on initial
load and on every add/change/unlink event from Astro's dev-mode
watcher, scoped to the content directory. Verified live: created a
file mid-session, it appeared within ~2s with no restart; deleting it
disappeared just as fast.

Production builds were never affected (astro build only calls load()
once anyway, and always sees the current state of content/).
2026-08-31 08:43:08 +03:00
2026-07-17 11:11:44 +03:00
2026-04-02 13:14:18 +03:00
2025-08-04 23:27:49 +03:00
2026-04-08 16:17:12 +03:00
2026-07-17 14:37:04 +03:00
2026-04-02 13:14:18 +03:00
2026-07-17 15:01:48 +03:00
2026-07-02 21:34:28 +03:00
S
Description
No description provided
Readme
14 MiB
Languages
TypeScript 92.4%
CSS 5.2%
Dockerfile 2.2%
JavaScript 0.2%