fix(docs): render all code example languages at build time #192
[vc]: #NLgQa1Zh6KIc0nzFyIdNFP816YZnndS30t614EbfO6w=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJkcmFnLWFuZC1kcm9wLWRvY3MiLCJwcm9qZWN0SWQiOiJwcmpfbUNKSEUydjIwQnJmVFpuTlh3YW1QQTZrYks4bSIsInYwIjpmYWxzZSwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL2Zvcm1raXQvZHJhZy1hbmQtZHJvcC1kb2NzLzl3bzdUaE10WVlTOXRuQVdSejFVZmhhU0QyODYiLCJwcmV2aWV3VXJsIjoiZHJhZy1hbmQtZHJvcC1kb2NzLWdpdC1maXgtZG9jcy1jb2RlLXRhYnMtZm9ybWtpdC52ZXJjZWwuYXBwIiwibmV4dENvbW1pdFN0YXR1cyI6IkRFUExPWUVEIiwicm9vdERpcmVjdG9yeSI6ImRvY3MifV0sInJlcXVlc3RSZXZpZXdVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vdmVyY2VsLWFnZW50L3JlcXVlc3QtcmV2aWV3P293bmVyPWZvcm1raXQmcmVwbz1kcmFnLWFuZC1kcm9wJnByPTE5MiJ9
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
| :--- | :----- | :------ | :------ |
| drag-and-drop-docs | !Ready Ready | Preview | Jun 11, 2026 5:27pm |
<a href="https://vercel.com/vercel-agent/request-review?owner=formkit&repo=drag-and-drop&pr=192" rel="noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://agents-vade-review.vercel.sh/request-review-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://agents-vade-review.vercel.sh/request-review-light.svg"><img src="https://agents-vade-review.vercel.sh/request-review-light.svg" alt="Request Review"></picture></a>
Review notes: payload size is the main tradeoff — five static panes per example instead of one. That's inert HTML (no extra JS), and it's what made the build catch the broken Native sample, which I consider the stronger argument: lazy islands turned doc-sample type errors into invisible runtime 500s. The loadedLangs machinery and its watch hook are gone; collectRawCode's retry loop is kept (it still guards slow hydration) but now finds every container on the first pass.
justin-schroeder
Fixes #174 (only the React tab renders on drag-and-drop.formkit.com).
Root cause — two layers
1. The Vue/Solid/Native/Marko panes are server components mounted lazily (
v-ifon first tab click). On the statically deployed site, that mount issues a runtime/__nuxt_island/...request with no server to answer it → empty pane.2. Eagerly prerendering them surfaced a second bug the lazy islands had been hiding:
docs/examples/config/config.tsmirrorsParentConfigand still used the unparameterized handler types — after #186 that's TS2314, twoslash rejects the sample, and the Native island 500s even with a server. This is consistent with the issue reporting all non-React tabs blank.Fix
v-show. The highlighted HTML ships in the static page; the client-perf win of server components (no shiki/twoslash on the client) is preserved — the cost moves to build time.config.tsexample updated toSortEvent<T>et al.Verification
nuxt generatecompletes with zero prerender errors (71 island routes), where it previously failed.index.htmlcontains the raw-code containers and shiki output for all five languages (774 highlighted blocks).