Skip to content

docs(skills): add deco-tanstack-site - #794

Closed
tlgimenes wants to merge 2 commits into
mainfrom
skills/deco-tanstack-site
Closed

tlgimenes wants to merge 2 commits into
mainfrom
skills/deco-tanstack-site

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What this adds

deco-tanstack-site: wiring a TanStack Start site to @decocms/tanstack 8 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/skills deco-cms-route-config, deco-tanstack-search, deco-server-functions-invoke, deco-tanstack-navigation and deco-variant-selection-perf; and the html-lang item of decocms/storefront-skills troubleshooting. Every API in it was checked against packages/tanstack. What only v7 had (manifest codegen, /deco/invoke, createDecoWorkerEntry) is left out.

The skills table in .agents/skills/README.md is regenerated, so sibling skill PRs conflict on it: after a rebase run bun run skills:readme.

🤖 Generated with Claude Code


Summary by cubic

Adds the deco-tanstack-site agent skill documenting how to wire a TanStack Start site to @decocms/tanstack 8 on Cloudflare Workers.

  • Covers setup (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.
  • Consolidates decocms/migrations target-tanstack-deco and several decocms/skills branches; APIs were checked against packages/tanstack on main.
  • Regenerates the skills table in .agents/skills/README.md, so sibling skill PRs will conflict there — after a rebase run bun run skills:readme.

Written for commit 227cceb. Summary will update on new commits.

View guided diff Turn on auto-fix

tlgimenes and others added 2 commits November 9, 2026 15:24
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]>
@tlgimenes
tlgimenes requested a review from a team November 9, 2026 18:48
@tlgimenes

Copy link
Copy Markdown
Contributor Author

Superseded by #800, which merged these commits together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant