@vulcantech/banners 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -183,10 +183,10 @@ export function SiteBanners({ banners }: { banners: BannerData[] }) {
183
183
  ```
184
184
  Without this, every banner shows on every page.
185
185
 
186
- **5. ISR invalidation** — ensure `src/app/api/revalidate/route.ts` exists; the CMS purges the `banners:{projectId}` tag when a banner is edited.
186
+ **5. ISR invalidation** — ensure `src/app/api/revalidate/route.ts` exists, set `VULCANTECH_REVALIDATE_SECRET`, and register the site under **Settings → Form Consumers (ISR Revalidation)** in the CMS (the list serves every integration, not just forms). The CMS purges the `banners:{projectId}` tag when a banner is edited. Route contract and reference copy: the `@vulcantech/cms` README, [ISR revalidation](../cms/README.md#isr-revalidation).
187
187
 
188
188
  ### Required env
189
- `VULCANTECH_PROJECT_ID`, `VULCANTECH_API_KEY` (required) · `VULCANTECH_CMS_URL` (optional, defaults to `https://cms.vulcantech.io`).
189
+ `VULCANTECH_PROJECT_ID`, `VULCANTECH_API_KEY` (required) · `VULCANTECH_REVALIDATE_SECRET` (required for instant ISR purges; see step 5) · `VULCANTECH_CMS_URL` (optional, defaults to `https://cms.vulcantech.io`).
190
190
 
191
191
  ### Per-app values
192
192
  None beyond env — banners is fully config-driven from the CMS.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulcantech/banners",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CMS-driven announcement banners for consumer sites — top/bottom positions, page targeting, priority ordering, and dismissible bars backed by localStorage",
5
5
  "license": "MIT",
6
6
  "source": "./index.ts",