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:
+1
-1
@@ -6,7 +6,7 @@
|
||||
"packageManager": "pnpm@12.11.2",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build && node config/externalizeInlineScripts.ts",
|
||||
"build": "node config/fetchOfferings.ts && tsc && vite build && node config/externalizeInlineScripts.ts",
|
||||
"preview": "node config/previewServer.ts",
|
||||
"e2e": "vitest run --config vitest.e2e.config.ts",
|
||||
"postinstall": "chakra typegen ./src/theme.ts",
|
||||
|
||||
Reference in New Issue
Block a user