Each policy now has exactly one copy: docs/PRIVACY.md in the app's own repository. The pages keep their URLs and chrome and render that file through a content collection, so the published page and the app's own documentation cannot drift. scripts/sync-external.mjs shallow-clones both repos into external/ from prebuild and predev — not from CI: Coolify builds the site from the repo, so a checkout that only ran in a Gitea job would never reach the deploy. It falls back to the raw file if git is unavailable, and takes <APP>_REF or <APP>_LOCAL for work against a branch or an unpushed working copy. A missing, empty or malformed policy fails the build, verified against the real image: the deploy stops rather than publishing an empty privacy page.
26 lines
672 B
JSON
26 lines
672 B
JSON
{
|
|
"name": "jeanlucmakiola.de",
|
|
"type": "module",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"sync:external": "node scripts/sync-external.mjs",
|
|
"predev": "npm run sync:external",
|
|
"prebuild": "npm run sync:external",
|
|
"dev": "astro dev",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"astro": "astro"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/rss": "^4.0.18",
|
|
"@astrojs/sitemap": "^3.7.3",
|
|
"@fontsource-variable/inter": "^5.2.8",
|
|
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
"@iconify-json/mdi": "^1.2.3",
|
|
"@iconify-json/simple-icons": "^1.2.87",
|
|
"astro": "^7.0.3",
|
|
"astro-icon": "^1.1.5"
|
|
}
|
|
}
|