andwati 85efb824ae Wire Strapi to content/ via a two-way file sync provider
Adds slug (uid) fields to all four content types so Strapi documents
can be matched to files deterministically, plus:

- apps/cms/src/utils/content-file.ts: read/write/delete the +++ TOML
  frontmatter files, using smol-toml's TomlDate so dates round-trip as
  bare local dates (matching the legacy Zola format), not quoted
  datetime strings.
- apps/cms/src/utils/content-sync.ts: per-type frontmatter <-> Strapi
  field mappings, a boot-time importer that upserts every content/
  file into Strapi by slug, and a Document Service middleware that
  writes any create/update/delete made through Strapi straight back
  to the same files.

Strapi's SQLite DB is now genuinely a disposable cache: content/
stays buildable and readable with Strapi entirely absent, and
restarting Strapi rebuilds its DB from content/ with no duplicates
(matched by slug).

Verified end-to-end: fresh boot imports all seed files once; a second
boot re-imports idempotently (0 created, all matched by slug); create/
update/delete through the content-manager API all correctly write to
and remove the corresponding file on disk.
2026-08-30 18:45:44 +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%