Repository navigation
Conversation
Wiring a TanStack Start site to @decocms/tanstack 8: setup (createCMS, block map, vite and wrangler), the catch-all route and page server function with search params, the worker entry, server functions in place of /deco/invoke, the router and navigation, and the document, Studio framing and security headers. Every API is checked against packages/ on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Preview responses send X-Robots-Tag: noindex, nofollow (draft.ts). - The visitor cookie is withheld only when a draft or old release renders. - DEGRADED_HEADER must be "true" for the example cache to skip storing. - StudioBridge matches data-manifest-key to the id Studio sends; drop the unproven section wrapper shape. - The deco CLI reads DECO_SITE from env, .env, .dev.vars, then wrangler. - Drop the node:async_hooks bundle check (decoTanstack stubs it). - Reword the Set-Cookie collapse and the history.replaceState note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Superseded by #800, which merged these commits together. |
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.
What this adds
deco-tanstack-site: wiring a TanStack Start site to@decocms/tanstack8 on Cloudflare Workers. It covers createCMS and the block map, the catch-all route with matchRoute, the page server function, createDecoWorker and the worker entry, createDecoRouter, DecoDocument and DecoPreview, security headers and Studio's CSP, and server functions in place of v7's/deco/invoke.References:
setup.md,routes-and-pages.md,worker-entry.md,server-functions.md,router-and-navigation.md,document-and-security.md.Sources
It consolidates decocms/migrations
target-tanstack-deco; decocms/skillsdeco-cms-route-config,deco-tanstack-search,deco-server-functions-invoke,deco-tanstack-navigationanddeco-variant-selection-perf; and the html-lang item of decocms/storefront-skillstroubleshooting. Every API in it was checked againstpackages/tanstack. What only v7 had (manifest codegen,/deco/invoke,createDecoWorkerEntry) is left out.The skills table in
.agents/skills/README.mdis regenerated, so sibling skill PRs conflict on it: after a rebase runbun run skills:readme.🤖 Generated with Claude Code
Summary by cubic
Adds the
deco-tanstack-siteagent skill documenting how to wire a TanStack Start site to@decocms/tanstack8 on Cloudflare Workers.createCMS, the block map, vite and wrangler config), the catch-all route and page server function, the worker entry, server functions in place of v7's/deco/invoke, the router and navigation, and the document, Studio framing, and security headers.target-tanstack-decoand several decocms/skills branches; APIs were checked againstpackages/tanstackon main..agents/skills/README.md, so sibling skill PRs will conflict there — after a rebase runbun run skills:readme.Written for commit 227cceb. Summary will update on new commits.