Repository navigation
studio: update CSR/SSR and 404 guides with latest drafts - #30
Merged
timbenniks-contentstack merged 1 commit intoNov 2, 2026
Merged
timbenniks-contentstack merged 1 commit into
timbenniks-contentstack merged 1 commit into
Conversation
Bring in the updated drafts: isCompositionNotFound in every 404 branch, cache() for one fetch per request, the canvas note on unpublished templates, builder-mode stackDetails requirements, init .catch, the ?builder=true handshake check, and the first-instance rule for a second init (all verified against live-preview-utils 4.5.3). Keep the SDK fixes from review: clear the shared stack's preview hash before each SSR fetch, refetchSpec fallback for freeform compositions on studio-react 2.0.1, typed snippets (tsc strict passes), and isCompositionNotFound on the CSR route. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
timbenniks-contentstack
approved these changes
Nov 2, 2026
timbenniks-contentstack
merged commit Nov 2, 2026
7786002
into
contentstack:next
5 of 7 checks passed
Open
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.
Follow-up to #29, which was merged before this commit was pushed. It updates the two new Studio guides with the latest drafts.
Changes
csr-and-ssr-requirementsstackDetails.apiKeyand.environment.environmentfalls back tostackSdk,apiKeydoesn't.ssrdefaults (falsewithstackSdk,truewithout), and the stack'slive_preview.ssrtakes precedence.initkeeps the first instance, so restart the dev server after changing settings.visual-builderchannel,initmessage) without signing in.isCompositionNotFounderrors to the 404 page and shows an error state for everything else.refetchDataonly works for connected compositions, so the example falls back torefetchSpec.handle-404-pagesisCompositionNotFounddecides every 404. A bad token or an outage stays an error.cache()so the page andgenerateMetadatashare one fetch.CHANGELOG.md0.3.1 lines are updated to match. No version bump: 0.3.1 hasn't been released yet.Verification
node scripts/validate.mjspasses.@contentstack/studio-react2.0.1 and@contentstack/live-preview-utils4.5.3.🤖 Generated with Claude Code