You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cloudflare-workers-migration.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ TanStack.com is configured as a Cloudflare Workers deployment for this branch. N
13
13
-`src/routes/api/builder/*`, `src/components/builder/*`: builder deploy/download path uses browser-generated files; direct server-generation endpoints return explicit 501 on Workers.
14
14
-`src/routes/*`, `src/utils/*`, `src/server/*`: CDN cache headers moved from Netlify-specific headers to portable `CDN-Cache-Control` / `Cache-Tag`.
15
15
-`src/utils/markdown/processor.ts`: site-side compatibility guard for escaped angle brackets in generated TypeDoc markdown until `@tanstack/markdown` handles `\<...\>` as escaped text.
16
+
-`patches/@tanstack__markdown@0.0.4.patch`, `pnpm-workspace.yaml`, `pnpm-lock.yaml`: temporary `@tanstack/markdown` patch for compact table delimiters, footnotes, and legacy single-tilde strike headings until an upstream package release is available.
Additional checks used `curl`, Node fetch scripts, Wrangler tail, and Playwright with system Chrome against the Workers preview URL.
33
+
Additional checks used `curl`, Node fetch scripts, Wrangler tail, and Playwright with system Chrome against the Workers preview URL. The local `/Users/tannerlinsley/GitHub/markdown` package source was also checked with `pnpm run typecheck`, `pnpm test`, and `pnpm run build` before refreshing the site patch.
- Note: the secret-bearing `tanstack-com-staging` Worker was renamed to `tanstack-com`, and the older empty `tanstack-com` Worker was removed.
40
44
41
45
## Passed
@@ -60,6 +64,12 @@ Additional checks used `curl`, Node fetch scripts, Wrangler tail, and Playwright
60
64
-`Link` response headers for static assets are emitted on SSR responses for Cloudflare Early Hints fallback.
61
65
- Broad docs/blog audit generated 2,767 latest-doc/blog URLs from GitHub doc trees plus local blog posts and compared production vs Worker.
62
66
- Escaped generic headings in TypeDoc markdown now render correctly, e.g. `Interface: AudioAdapter<TModel, TProviderOptions>` with the production-compatible `interface-audioadaptertmodel-tprovideroptions` anchor.
67
+
- Local site parser checks now match the remaining markdown audit diffs:
-`/start/latest/docs/framework/react/migrate-from-next-js` headings render as `Server Actions Functions` and `Server Routes Handlers`.
71
+
-`/blog/tanstack-router-signal-graph` renders footnotes with `data-footnotes` and production-compatible footnote anchors.
72
+
- Live Worker rechecks against production passed for the same table, heading, and footnote signals after deploying version `3e098f31-77b6-44bf-ba39-d5c4617977ae`.
63
73
- Three full-body rechecks of 43 URLs that intermittently returned Worker 500/timeout during the high-concurrency audit cleared; the only stable non-200s were `/hotkeys/latest/docs/reference` and `/pacer/latest/docs/reference`, both 404 on production and Worker.
64
74
65
75
## Failed Or Not Proven
@@ -90,11 +100,17 @@ Cloudflare image transformations are disabled by default because `/cdn-cgi/image
90
100
91
101
The new markdown renderer initially parsed escaped TypeDoc generics like `\<T\>` as inline HTML. The site now protects escaped `<` / `>` outside code fences and inline code before parsing, restores them into text nodes before render, and rebuilds headings so rendered content and ToC anchors stay aligned.
92
102
103
+
Resolved markdown differences from the broad audit:
104
+
105
+
- Escaped TypeDoc generics no longer become inline HTML.
106
+
- Compact markdown table delimiters like `:--:` now parse as tables, matching the existing production renderer.
107
+
- Blog footnotes now render with `data-footnotes`, `user-content-fn-*`, and `user-content-fnref-*` anchors.
108
+
- Legacy single-tilde strike headings now render without visible `~` markers.
109
+
93
110
Remaining markdown differences observed during audit:
94
111
95
112
- Production duplicates light/dark code blocks; the Worker branch renders one theme-aware code block. This explains large HTML-size and `<pre>` count differences.
96
-
- Blog footnote headings are omitted by the new renderer on a few posts. Confirm whether this is an intentional markdown package behavior change before treating it as a site regression.
97
-
- Two table-count diffs remain in `/ai/latest/docs/code-mode/code-mode` and `/db/latest/docs/collections/powersync-collection`; these should be reviewed upstream in `@tanstack/markdown` because route/status/content otherwise match.
113
+
- The `@tanstack/markdown` fixes are currently carried as a pnpm patch in this branch. Replace it with the next published package version once upstream includes the same behavior.
0 commit comments