Reads the shoot packages and an optional banner from the CMS at build time

The build asks GET /api/v1/offerings and bakes the packages into the pages,
with a committed snapshot as fallback so a CMS outage never breaks the build
or shows an empty price. The form choices and ?pakket= use the same list. An
offering with layout=banner becomes an optional band under the price cards.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 08:13:01 +01:00
co-authored by Claude Sonnet 5.5
parent 7737104a77
commit 5bfbde1881
16 changed files with 626 additions and 40 deletions
@@ -84,10 +84,17 @@ jobs:
run: pnpm test
# Sentry toont bij elke fout uit welke commit de build komt
# De pakketten en prijzen komen uit het CMS: de build haalt ze op
# (web/config/fetchOfferings.ts) en valt bij een storing terug op de
# gecommitte lijst. ASF_OFFERINGS_URL (repo-variabele) is het adres dat
# /api/v1/offerings serveert, zonder is de fallback de bron. Let op: dit
# artefact is ook wat naar productie gaat; zet de variabele dus op het
# CMS waar de echte gegevens staan.
- name: Build
run: pnpm build
env:
VITE_RELEASE: ${{ github.sha }}
OFFERINGS_URL: ${{ vars.ASF_OFFERINGS_URL }}
- name: Audit (productiepakketten, blokkerend)
run: pnpm audit:deps