Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…n for improved readability and reusability
…dation
Move SSG example pages from /pages/{plugin} to /pages/ssg-{plugin} to avoid
ambiguity with the catch-all routes. Adds revalidatePath calls in blog/cms/
forms/kanban lifecycle hooks so the ISR cache is purged when content changes.
Introduces a global singleton for myStack in the Next.js example to share the
same in-memory adapter across module boundaries. Exports KANBAN_QUERY_KEYS
from the kanban api index. Updates E2E smoke tests to target the new routes.
Co-authored-by: Cursor <cursoragent@cursor.com>
Each plugin's SSG section now includes an example showing how to call revalidatePath() inside backend lifecycle hooks so the Next.js ISR cache is purged whenever content changes (blog, kanban, cms, form-builder). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…tack and React Router examples
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Touches multiple plugin APIs and React Query cache key/serialization behavior, so incorrect key shapes or data hydration could cause subtle SSR/SSG cache misses or runtime rendering issues, but changes are largely additive and documented/tested.
Overview
Adds first-class SSG support to core plugins by introducing
api.*.prefetchForRoute(routeKey, queryClient, params?), letting Next.js pages seed the React Query cache directly from the DB at build time (avoidingroute.loader()HTTP calls that fail duringnext build).Implements this pattern across Blog, CMS, Form Builder, and Kanban: new shared
api/query-key-defs.tskey builders (and updatesquery-keys.tsto import them), route-key types + typed overloads forprefetchForRoute, and serializers/ID getters where needed sosetQueryDatamatches the hydrated HTTP shapes (includinguseInfiniteQuery{ pages, pageParams }andDate→ ISO string conversion). Client loaders now detect connection-refused errors via a newisConnectionErrorhelper and emit an actionable warning.Updates the Next.js example app with dedicated SSG pages (
/pages/ssg-*), ISRrevalidateusage, and backend hooks callingrevalidatePathon mutations; also adds Playwright smoke coverage for SSG rendering/revalidation, bumps@btst/stackto2.3.0, and updates@btst/yarto1.2.0alongside expanded documentation.Written by Cursor Bugbot for commit df26c04. This will update automatically on new commits. Configure here.