@vulcantech/blog 0.2.1 → 0.2.2
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.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ export { GET } from "@vulcantech/blog";
|
|
|
113
113
|
```
|
|
114
114
|
The CMS mints a signed token and links to `/api/preview?token=…&slug=…`; the handler validates it, enables Next Draft Mode, and redirects to the post. Reading the token opts the render dynamic — keep the public `[slug]` route static/ISR and let Draft Mode switch it.
|
|
115
115
|
|
|
116
|
-
**6. ISR invalidation** — ensure `src/app/api/revalidate/route.ts` exists
|
|
116
|
+
**6. 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. That list serves every integration, not just forms — skip it and blog edits wait out the 60s window instead of purging instantly. The CMS purges `blog:{projectId}` (list) and `blog:{projectId}:{slug}` (single) on edit. Route contract and reference copy: the `@vulcantech/cms` README, [ISR revalidation](../cms/README.md#isr-revalidation).
|
|
117
117
|
|
|
118
118
|
**7. (Optional) video styling** — authors can drop videos into post content. They
|
|
119
119
|
arrive as real, playable markup (`<video class="cms-video">` for CMS-hosted files,
|
|
@@ -208,7 +208,7 @@ tags on edit, so scoped pages revalidate with the blog as long as they use this
|
|
|
208
208
|
package's fetchers (which attach those tags).
|
|
209
209
|
|
|
210
210
|
### Required env
|
|
211
|
-
`VULCANTECH_PROJECT_ID`, `VULCANTECH_API_KEY` (required) · `VULCANTECH_CMS_URL` (optional, default `https://cms.vulcantech.io`) · `VULCANTECH_BLOG_NO_CACHE` (optional, `1`/`true` to bypass ISR while debugging).
|
|
211
|
+
`VULCANTECH_PROJECT_ID`, `VULCANTECH_API_KEY` (required) · `VULCANTECH_REVALIDATE_SECRET` (required for instant ISR purges; see step 6) · `VULCANTECH_CMS_URL` (optional, default `https://cms.vulcantech.io`) · `VULCANTECH_BLOG_NO_CACHE` (optional, `1`/`true` to bypass ISR while debugging).
|
|
212
212
|
|
|
213
213
|
### Per-app values
|
|
214
214
|
None beyond env — all blog logic is shared.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulcantech/blog",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Server-side blog fetch layer for VulcanTech consumer sites — ISR-tagged reads from the CMS, with signed draft-preview support. Shared so each site doesn't duplicate the fetch code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "./src/index.ts",
|