Phase 1: cut the site to what it uses #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/phase-1-minimal-cut"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR only removes things. Every live page still renders the same, and nothing changes on the server.
@bdu, the part that concerns you:
/adminand Decap CMS are removed.public/admin(config, widgets, previews), the seven CMS preview routes (/preview/*) and the preview layout are gone./adminnow returns a 404. I know you set up Decap's local mode on 27 Oct. The choice is to keep the site minimal: in production the CMS could no longer log in (Netlify Identity is gone), and it loaded an unpinned Decap from unpkg on the live domain.content/, check withpnpm dev, then open a pull request intomain. The README's "Editing content" section describes this, plus how the id references work (still needed until Phase 2b flattens them).What else goes:
/pages/[lang]/[page]. It readcontent/pages/, which does not exist, so every URL there was an empty page.elements/container.vuekeeps only its grid wrapper; its block builder only served that route and the CMS preview.content/{aanbod,locations,persons}/{fr,en}(no page read them;aanbod/frheld stale copies of the nl files) and the empty language switchermain/languages.vue.masonry,animatedGrid,accordeon,intro,courses,svg/eyes,dev/*,utils/setDevPreContent.js,pages/.sandbox.vue.@egjs/vue-grid(only the masonry used it) and@formkit/tempo. The one date call now usesIntl.DateTimeFormat('nl-BE')and prints the same text (for example "3 april 2025"). Lockfile updated.content/site/navigation.json,categories.json,homepage.json.content/site/info.jsonstays (site name and description, for the page titles in Phase 2).public/:assets/animatedGrid(16 MB),assets/sandbox, and 26 uploads (8.5 MB) that no content, component or CSS names, plus the one image entry that pointed to one of them and that no content referenced.Size: 142 files changed, 34 lines added, 3,175 removed.
public/goes from 150 MB to 126 MB.Checked locally with Node 22.14.0 and pnpm 9.1.2 (Corepack):
pnpm install --frozen-lockfileandpnpm buildpass./aanbod,/academie,/inschrijven,/contactand the 15 atelier pages). The admin, preview and/pages/…URLs went from 200 to 404, as intended. All 75 image and asset URLs on those pages still return 200./aanbod, one atelier,/academie,/inschrijvenand/contacthas the same markup and the same data payload before and after. The only differences are build leftovers: script preloads and CSS rules for the removed components, and a few empty Vue placeholder comments.Not checked: Docker and Woodpecker (unchanged by this PR), and a visual pass in a browser.
Known issues left for the next PR (Phase 2), not touched here: an unknown atelier URL gives a 500 instead of a 404, there is no
error.vue, and theside2/ news / banner bugs.🤖 Generated with Claude Code
The site is Dutch only (ruled 22 Oct): every page queries the nl folders. content/{aanbod,locations,persons}/{fr,en} were copies no page read, and the aanbod/fr files were stale, different versions of the nl ones. main/languages.vue was an empty slot, used only by the removed extra-pages route. README: content/ is Dutch only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>@egjs/vue-grid was only imported by the removed masonry component (and transpiled for it in nuxt.config). @formkit/tempo had one call, in helpers/date.vue; it is now Intl.DateTimeFormat('nl-BE', { dateStyle: 'long' }), which gives the same text for every news date in content/ (checked side by side, e.g. "3 april 2025"). Lockfile updated with pnpm 9.1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>