void 1.12.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +1 -0
  2. package/dist/{account-cmd-CdJQba_Q.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
  3. package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
  4. package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
  5. package/dist/args-DrnTI35r.mjs +88 -0
  6. package/dist/args-MnQnqypt.mjs +1 -0
  7. package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
  8. package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
  9. package/dist/{auth-link-D9MWA_dj.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-FskgTU3B.mjs → auth-router-CXq4q7bb.mjs} +6 -5
  11. package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
  12. package/dist/bindings-C7zOgxT3.d.mts +28 -0
  13. package/dist/browser-run-BKgZVwLk.mjs +124 -0
  14. package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
  15. package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
  16. package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
  17. package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
  18. package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
  19. package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
  20. package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
  21. package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
  22. package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
  23. package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
  24. package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
  25. package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
  26. package/dist/cli/cli.mjs +1 -1
  27. package/dist/cli/cloudflare-operation-process.mjs +111 -47
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/cli/json-command-process.d.mts +6 -0
  30. package/dist/cli/json-command-process.mjs +91 -0
  31. package/dist/{cli-main-DaLrQfPS.mjs → cli-main-CJTGhcYN.mjs} +84 -113
  32. package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
  33. package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
  34. package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
  35. package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
  36. package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
  37. package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
  38. package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
  39. package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
  40. package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
  41. package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
  42. package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
  43. package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
  44. package/dist/collect-Aam0GwAU.mjs +1 -0
  45. package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
  46. package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
  47. package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
  48. package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
  49. package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
  50. package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
  51. package/dist/config-entry.d.mts +1 -1
  52. package/dist/config-write-dKLINlm2.mjs +80 -0
  53. package/dist/{connect-WG4TcR_d.mjs → connect-Bqq3b9sX.mjs} +10 -9
  54. package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
  55. package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
  56. package/dist/{db-BSuWV1PI.mjs → db-B3eoVDNA.mjs} +50 -47
  57. package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
  58. package/dist/db-args-Cx1y4vZn.mjs +1 -0
  59. package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
  60. package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
  61. package/dist/deploy-DZ9j7MC4.mjs +2 -0
  62. package/dist/{deploy-DtJeunLF.mjs → deploy-UojYUEWr.mjs} +803 -1415
  63. package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
  64. package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
  65. package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
  66. package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
  67. package/dist/deploy.mjs +14 -10
  68. package/dist/discover-BZWVWeQs.mjs +1 -0
  69. package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
  70. package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
  71. package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
  72. package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
  73. package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
  74. package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
  75. package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
  76. package/dist/{email-DoDqRH6i.mjs → email-BBSDV0J5.mjs} +13 -12
  77. package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
  78. package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
  79. package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
  80. package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
  81. package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
  82. package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
  83. package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
  84. package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
  85. package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
  86. package/dist/gen-DaayFP9v.mjs +1 -0
  87. package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
  88. package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
  89. package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
  90. package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
  91. package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
  92. package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
  93. package/dist/help-DWGHmt_n.mjs +1 -0
  94. package/dist/html-5sfGLjiI.d.mts +3 -0
  95. package/dist/html-DPSOBDCh.mjs +1 -0
  96. package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
  97. package/dist/index-Cvqotnhc.d.mts +91 -0
  98. package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
  99. package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
  100. package/dist/index.d.mts +3 -2
  101. package/dist/index.mjs +536 -170
  102. package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
  103. package/dist/{init-B2VZ2Hut.mjs → init-DftAx3L4.mjs} +237 -88
  104. package/dist/input-jcps6lAn.mjs +64 -0
  105. package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
  106. package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
  107. package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
  108. package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
  109. package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
  110. package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
  111. package/dist/login-BJwPhV_S.mjs +1 -0
  112. package/dist/{login-jUBgfvzk.mjs → login-DaugBfBG.mjs} +6 -5
  113. package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
  114. package/dist/migrate-BHD46A31.mjs +1 -0
  115. package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
  116. package/dist/nitro.mjs +3 -3
  117. package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
  118. package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
  119. package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
  120. package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
  121. package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
  122. package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
  123. package/dist/{operator-cmd-wML5HNfS.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
  124. package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
  125. package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
  126. package/dist/output-OYwcEwok.mjs +1 -0
  127. package/dist/pages/client.d.mts +34 -20
  128. package/dist/pages/client.mjs +172 -74
  129. package/dist/pages/index.d.mts +11 -4
  130. package/dist/pages/index.mjs +5 -5
  131. package/dist/pages/islands-plugin.d.mts +2 -2
  132. package/dist/pages/islands-plugin.mjs +5 -3
  133. package/dist/pages/protocol.d.mts +3 -3
  134. package/dist/pages/protocol.mjs +3 -3
  135. package/dist/pages/serialize.d.mts +2 -2
  136. package/dist/pages/serialize.mjs +1 -1
  137. package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
  138. package/dist/platform-C3Q44RJ8.mjs +250 -0
  139. package/dist/platform-args-BSyVZESg.mjs +1 -0
  140. package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
  141. package/dist/{platform-auth-config-Bv3oQ2gE.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-OqzfhXwx.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-rmIYjXST.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-D_4z2Ijv.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-B3rO4RhU.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
  146. package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
  147. package/dist/{platform-domain-CUq9odbd.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-DOSYo0UI.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-DuoVruij.mjs → platform-lifecycle-CKwOg8wz.mjs} +164 -72
  150. package/dist/{platform-management-D_gt3qLb.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-MmO9IubR.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
  152. package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
  153. package/dist/{platform-recovery-P_FVslfd.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
  154. package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
  155. package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
  156. package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
  157. package/dist/prepare-CLl_TA_r.mjs +1 -0
  158. package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
  159. package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
  160. package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
  161. package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
  162. package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
  163. package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
  164. package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
  165. package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
  166. package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
  167. package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
  168. package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
  169. package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
  170. package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
  171. package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
  172. package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
  173. package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
  174. package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
  175. package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
  176. package/dist/resolve-project-Bob_rEi2.mjs +1 -0
  177. package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
  178. package/dist/resource-binding-5nI30acw.mjs +20 -0
  179. package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
  180. package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
  181. package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
  182. package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
  183. package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
  184. package/dist/routes-stub.d.mts +18 -2
  185. package/dist/routes-stub.mjs +1 -1
  186. package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
  187. package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
  188. package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
  189. package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
  190. package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
  191. package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
  192. package/dist/runtime/ai/index.mjs +1 -1
  193. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  194. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  195. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  196. package/dist/runtime/client/fetch-server.mjs +1 -1
  197. package/dist/runtime/client/fetch-stream.mjs +1 -1
  198. package/dist/runtime/client/fetch.mjs +1 -1
  199. package/dist/runtime/client/index.mjs +2 -2
  200. package/dist/runtime/client/react.mjs +2 -2
  201. package/dist/runtime/client/solid.mjs +2 -2
  202. package/dist/runtime/client/svelte.mjs +2 -2
  203. package/dist/runtime/client/vue.mjs +2 -2
  204. package/dist/runtime/durable/index.mjs +11 -26
  205. package/dist/runtime/env/runtime.d.mts +2 -10
  206. package/dist/runtime/handler/index.d.mts +3 -2
  207. package/dist/runtime/handler/index.mjs +2 -2
  208. package/dist/runtime/handler/validator.d.mts +1 -1
  209. package/dist/runtime/handler/validator.mjs +1 -1
  210. package/dist/runtime/html.d.mts +2 -0
  211. package/dist/runtime/html.mjs +1 -0
  212. package/dist/runtime/image/index.d.mts +103 -0
  213. package/dist/runtime/image/index.mjs +89 -0
  214. package/dist/runtime/jsx/index.d.mts +3 -0
  215. package/dist/runtime/jsx/index.mjs +2 -0
  216. package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
  217. package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
  218. package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
  219. package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
  220. package/dist/runtime/limits/index.mjs +1 -1
  221. package/dist/runtime/live/client.d.mts +2 -2
  222. package/dist/runtime/live/index.d.mts +1 -1
  223. package/dist/runtime/routing/index.d.mts +87 -4
  224. package/dist/runtime/routing/index.mjs +59 -20
  225. package/dist/runtime/routing/route-url.d.mts +2 -2
  226. package/dist/runtime/routing/route-url.mjs +1 -1
  227. package/dist/runtime/sandbox/index.mjs +1 -1
  228. package/dist/runtime/sse/client.d.mts +1 -1
  229. package/dist/runtime/workflows/entry.d.mts +8 -0
  230. package/dist/runtime/workflows/entry.mjs +49 -0
  231. package/dist/runtime/workflows/index.d.mts +3 -0
  232. package/dist/runtime/workflows/index.mjs +77 -0
  233. package/dist/runtime/ws/index.d.mts +1 -1
  234. package/dist/runtime/ws/index.mjs +2 -2
  235. package/dist/runtime/ws/room.d.mts +1 -1
  236. package/dist/runtime/ws/server.d.mts +2 -2
  237. package/dist/runtime-Db72hLY-.d.mts +11 -0
  238. package/dist/scan-BxhB4BA-.mjs +946 -0
  239. package/dist/scan-D2ISAobj.mjs +308 -0
  240. package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
  241. package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
  242. package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
  243. package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
  244. package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
  245. package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
  246. package/dist/standard-schema-DvMcZGMK.mjs +8 -0
  247. package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
  248. package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
  249. package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
  250. package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
  251. package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
  252. package/dist/validate-p9b3r1k4.mjs +1 -0
  253. package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
  254. package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
  255. package/dist/version-metadata-CEla0kgi.mjs +23 -0
  256. package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
  257. package/dist/wrangler-BT7qrzWc.mjs +1 -0
  258. package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
  259. package/docs/guide/ai.md +1 -1
  260. package/docs/guide/app-types.md +6 -23
  261. package/docs/guide/auth.md +2 -4
  262. package/docs/guide/database/d1.md +21 -67
  263. package/docs/guide/database/mysql.md +8 -0
  264. package/docs/guide/database/postgresql.md +2 -2
  265. package/docs/guide/database.md +1 -1
  266. package/docs/guide/deployment.md +18 -0
  267. package/docs/guide/edge/prerendering.md +3 -7
  268. package/docs/guide/edge/redirects.md +1 -1
  269. package/docs/guide/edge/revalidation.md +8 -17
  270. package/docs/guide/edge/rewrites.md +1 -1
  271. package/docs/guide/edge/static-assets.md +10 -22
  272. package/docs/guide/email/domains.md +3 -1
  273. package/docs/guide/email/receiving.md +2 -2
  274. package/docs/guide/email/sending.md +3 -1
  275. package/docs/guide/env-vars.md +2 -0
  276. package/docs/guide/image-generation.md +142 -0
  277. package/docs/guide/index.md +17 -15
  278. package/docs/guide/jobs.md +2 -4
  279. package/docs/guide/kv.md +1 -1
  280. package/docs/guide/og-images.md +83 -0
  281. package/docs/guide/pages-routing/actions-and-forms.md +6 -4
  282. package/docs/guide/pages-routing/errors.md +20 -4
  283. package/docs/guide/pages-routing/head.md +5 -5
  284. package/docs/guide/pages-routing/islands.md +4 -14
  285. package/docs/guide/pages-routing/markdown.md +2 -2
  286. package/docs/guide/pages-routing/overview.md +129 -15
  287. package/docs/guide/platform/administration/plans.md +47 -16
  288. package/docs/guide/platform/administration/projects.md +10 -0
  289. package/docs/guide/platform/administration/security-audits.md +76 -30
  290. package/docs/guide/platform/administration/zero-trust.md +1 -1
  291. package/docs/guide/platform/installation/ci.md +0 -4
  292. package/docs/guide/platform/installation/credentials.md +1 -1
  293. package/docs/guide/platform/installation/maintenance.md +10 -10
  294. package/docs/guide/platform/installation/prerequisites.md +3 -1
  295. package/docs/guide/platform/installation/setup.md +7 -15
  296. package/docs/guide/platform/installation/uninstall.md +6 -12
  297. package/docs/guide/project-collaboration.md +1 -4
  298. package/docs/guide/queues.md +6 -8
  299. package/docs/guide/quickstart.md +6 -8
  300. package/docs/guide/sandboxes.md +1 -1
  301. package/docs/guide/self-hosted-platform.md +4 -7
  302. package/docs/guide/server-routing.md +5 -3
  303. package/docs/guide/ssg.md +1 -1
  304. package/docs/guide/type-safety.md +74 -10
  305. package/docs/guide/websockets.md +5 -7
  306. package/docs/guide/workflows.md +122 -0
  307. package/docs/index.md +2 -3
  308. package/docs/integrations/agents.md +3 -16
  309. package/docs/integrations/cloudflare.md +98 -2
  310. package/docs/integrations/frameworks/analog.md +9 -11
  311. package/docs/integrations/frameworks/astro.md +16 -17
  312. package/docs/integrations/frameworks/nuxt.md +11 -13
  313. package/docs/integrations/frameworks/overview.md +18 -20
  314. package/docs/integrations/frameworks/react-router.md +55 -6
  315. package/docs/integrations/frameworks/sveltekit.md +8 -6
  316. package/docs/integrations/frameworks/tanstack-start.md +10 -6
  317. package/docs/integrations/hono.md +27 -12
  318. package/docs/integrations/nodejs-bun-deno.md +10 -2
  319. package/docs/reference/api/database.md +8 -10
  320. package/docs/reference/api/env.md +2 -2
  321. package/docs/reference/api/handlers.md +1 -1
  322. package/docs/reference/api/html.md +45 -0
  323. package/docs/reference/api/pages.md +118 -167
  324. package/docs/reference/api/rewrites.md +5 -5
  325. package/docs/reference/api/types.md +13 -6
  326. package/docs/reference/api/workflows.md +48 -0
  327. package/docs/reference/api.md +7 -1
  328. package/docs/reference/cli/database.md +22 -10
  329. package/docs/reference/cli/deploy.md +49 -4
  330. package/docs/reference/cli/domains.md +7 -3
  331. package/docs/reference/cli/email.md +3 -1
  332. package/docs/reference/cli/platform-installation.md +9 -53
  333. package/docs/reference/cli/platform-security.md +36 -8
  334. package/docs/reference/cli/platform-users.md +11 -1
  335. package/docs/reference/cli/platform-zero-trust.md +1 -1
  336. package/docs/reference/cli/project.md +52 -11
  337. package/docs/reference/cli/setup.md +8 -10
  338. package/docs/reference/cli.md +49 -47
  339. package/docs/reference/config.md +22 -8
  340. package/docs/reference/resource-inference.md +8 -1
  341. package/docs/reference/structure.md +5 -0
  342. package/package.json +52 -25
  343. package/schema.json +20 -1
  344. package/skills/void/SKILL.md +60 -54
  345. package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
  346. package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
  347. package/dist/cli/db-execute-process.d.mts +0 -2
  348. package/dist/cli/db-execute-process.mjs +0 -57
  349. package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
  350. package/dist/collect-B6nlSnsb.mjs +0 -1
  351. package/dist/db-args-BvMwAber.mjs +0 -1
  352. package/dist/deploy-GT4CW5fs.mjs +0 -2
  353. package/dist/discover-D2KGP3cR.mjs +0 -1
  354. package/dist/entry-Bwb9ev8K.mjs +0 -113
  355. package/dist/gen-vhBDHs3q.mjs +0 -1
  356. package/dist/help-fKPzcTJv.mjs +0 -1
  357. package/dist/isr-config-DiTnL9Tb.mjs +0 -115
  358. package/dist/login-BbSQTZ6d.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-jnjzuJKX.mjs +0 -1
  361. package/dist/output-D7K9TWIA.mjs +0 -1
  362. package/dist/platform-args-CMwMoiLp.mjs +0 -1
  363. package/dist/prepare-DcwigRUS.mjs +0 -1
  364. package/dist/providers-D5P8j_8D.d.mts +0 -5
  365. package/dist/resolve-project-YsTH-U9I.mjs +0 -1
  366. package/dist/static-exports-s7P86Ngp.mjs +0 -354
  367. package/dist/validate-CZYUIfR-.mjs +0 -1
  368. package/dist/wrangler-Dq269bjx.mjs +0 -1
  369. package/docs/guide/platform/development/local.md +0 -120
  370. package/docs/guide/platform/development/runtime.md +0 -115
  371. package/docs/guide/platform/development/schema-ci.md +0 -44
  372. package/docs/guide/platform-development.md +0 -16
@@ -0,0 +1,122 @@
1
+ ---
2
+ description: 'Schedule work, retry individual steps, and start Cloudflare Workflows from a Void route.'
3
+ outline: deep
4
+ ---
5
+
6
+ # Workflows
7
+
8
+ A Workflow can keep running after a request ends. For example, a route can schedule a blog post and return an ID immediately. The Workflow waits until publication time, writes the post, and retries the write if it fails.
9
+
10
+ ## Define a Workflow
11
+
12
+ Default-export `defineWorkflow()` from `workflows/publish-post.ts`. This example uses Zod (`vp add zod`) to accept a timestamp string from the caller and give the Workflow a `Date`:
13
+
14
+ ```ts
15
+ // workflows/publish-post.ts
16
+ import { kv } from 'void/kv';
17
+ import { defineWorkflow } from 'void/workflows';
18
+ import { z } from 'zod';
19
+
20
+ export default defineWorkflow({
21
+ params: z.object({
22
+ slug: z.string().min(1),
23
+ title: z.string().min(1),
24
+ publishAt: z.iso.datetime().transform((value) => new Date(value)),
25
+ }),
26
+ async run({ payload: post }, step) {
27
+ await step.sleepUntil('publication time', post.publishAt);
28
+ await step.do('publish post', () => kv.put(`posts:${post.slug}`, post.title));
29
+ return { slug: post.slug };
30
+ },
31
+ });
32
+ ```
33
+
34
+ `sleepUntil()` pauses the instance. When it wakes, `step.do()` writes the title to KV. Cloudflare remembers completed steps, so resuming this Workflow skips a write that already succeeded. See the [Cloudflare step API](https://developers.cloudflare.com/workflows/build/workers-api/#workflowstep) for retry options.
35
+
36
+ You can use the same [KV](./kv.md) and [database](./database.md) helpers as in a route. If a step needs a D1 bookmark, call `setSession({ bookmark })` before its first query on each attempt.
37
+
38
+ ## Start an instance from a route
39
+
40
+ Call `create()` from a route to schedule the post ten minutes from now:
41
+
42
+ ```ts
43
+ // routes/api/publish.ts
44
+ import { defineHandler } from 'void';
45
+ import PublishPost from '../../workflows/publish-post.ts';
46
+
47
+ export const POST = defineHandler(async () => {
48
+ const instance = await PublishPost.create({
49
+ params: {
50
+ slug: 'hello-void',
51
+ title: 'Hello, Void!',
52
+ publishAt: new Date(Date.now() + 10 * 60_000).toISOString(),
53
+ },
54
+ });
55
+ return { id: instance.id };
56
+ });
57
+ ```
58
+
59
+ `POST /api/publish` returns the instance ID. To check whether the post is still waiting or has been published, get the instance with `await PublishPost.get(id)` and call `await instance.status()`.
60
+
61
+ ### Validate params
62
+
63
+ Validation happens when the instance starts, including instances started from the Cloudflare dashboard or REST API. An invalid `publishAt` fails the instance with `WorkflowParamsError` before it sleeps. If you want your endpoint to return HTTP 400 for a bad date, validate the request in the route before calling `create()`.
64
+
65
+ Use any [Standard Schema](https://standardschema.dev/) validator, including Zod, Valibot, or ArkType. Keep transforms deterministic because Cloudflare can run the entrypoint again when it resumes an instance. For TypeScript-only checks, omit `params` and pass your input type to `defineWorkflow<MyParams>()`.
66
+
67
+ ### Start a batch
68
+
69
+ Use `{ instances }` when each post has its own params or ID. Use `{ count, params }` to start several instances with the same input. Both forms accept up to 100 instances and return `{ created, errors }`. Check `errors` for entries Cloudflare could not create. Each error includes its position in the batch. [Workflow API reference](../reference/api/workflows.md#workflowapi)
70
+
71
+ ## Native Workflow classes
72
+
73
+ If you already have a class that extends Cloudflare's `WorkflowEntrypoint`, you can keep its `run(event, step)` implementation. For example, if your class lives in `src/import-posts.ts`, register it in `workflows/import-posts.ts`.
74
+
75
+ ```ts
76
+ // workflows/import-posts.ts
77
+ import { defineWorkflowEntrypoint } from 'void/workflows';
78
+ import { ImportPosts } from '../src/import-posts.ts';
79
+
80
+ export default defineWorkflowEntrypoint({ class: ImportPosts });
81
+ ```
82
+
83
+ The default export has the same `create()`, `createBatch()`, and `get()` methods. TypeScript reads the payload type from the class's `run` method.
84
+
85
+ ## Names and bindings
86
+
87
+ Void turns `workflows/publish-post.ts` into the `WORKFLOW_PUBLISH_POST` binding and the `PublishPostWorkflow` class. Before moving a deployed Workflow, run `void info` and copy the suggested `name` into its definition. New and existing instances will still belong to the same Workflow.
88
+
89
+ Keep `workflows/` at the project root, including when you set `sourceDir`. A path like `workflows/posts/publish.ts` uses the name `posts-publish`. Prefix a file or directory with `_` to keep step helpers beside the Workflow without registering them. In a CommonJS project, use `.mts` or `.mjs` for Workflow modules. If your tsconfig has an explicit `include` list, add `workflows`.
90
+
91
+ The definition's `name` must be a static string containing an ASCII letter or digit. Direct Cloudflare deploys name the Workflow `<worker-name>_publish-post`. To use an existing account-wide Workflow name or shorten one that exceeds 64 characters on that target, set the name on its binding.
92
+
93
+ ```ts
94
+ // void.config.ts
95
+ import { defineConfig } from 'void/config';
96
+
97
+ export default defineConfig({
98
+ cloudflare: {
99
+ workflows: [
100
+ { binding: 'WORKFLOW_PUBLISH_POST', class_name: 'PublishPostWorkflow', name: 'publish-post' },
101
+ ],
102
+ },
103
+ });
104
+ ```
105
+
106
+ If your config already declares the Workflow in `cloudflare.exports`, use the generated class name as the export key. Void uses the name and settings from that export.
107
+
108
+ ## Deploy to a Void platform
109
+
110
+ Deploy the app with `void deploy --platform void`. Void provisions a separate Workflow for each definition in your project. Two projects can use the same Workflow and instance names.
111
+
112
+ Workflow schedules, concurrency, step limits, and retention settings in `cloudflare.workflows` apply on deploy and rollback. The platform chooses the account-wide resource name.
113
+
114
+ An instance uses the deployment active when it first runs. It resumes on that same deployment after a sleep, a new deploy, or a rollback. The project’s [plan](./platform/administration/plans.md) sets how many Workflows it can provision, how many recurring cron schedules it can activate across them, and how many instances can run at once. Further instances wait for capacity. To publish only the static site, run `void deploy --platform void --dir dist/client`.
115
+
116
+ ## Deploy to Cloudflare
117
+
118
+ Run the Workflow locally in a native Void app, then deploy it to your Cloudflare account with `void deploy --platform cloudflare`. [Workers Free includes Workflows](https://developers.cloudflare.com/workflows/reference/limits/).
119
+
120
+ Recurring Workflow schedules, more than 1,024 steps, concurrency above 100, or default retention longer than 3 days require [Workers Paid](https://dash.cloudflare.com/?to=/:account/workers/plans). Paid accounts support up to 25,000 steps and 30 days of retention. To keep completed or failed instances longer, set `default_retention.success_retention` or `default_retention.error_retention` to a duration like `"7 days"` or a whole number of milliseconds. For paid settings, your API token needs **Account Settings: Read** to check the account limits and **Workers Scripts: Edit** to publish.
121
+
122
+ If Cloudflare cannot stage a Workflow addition, rename, or removal, review the change and run `void deploy --platform cloudflare --atomic`. The new version will receive traffic before Void checks readiness.
package/docs/index.md CHANGED
@@ -36,7 +36,6 @@ features:
36
36
  highlights:
37
37
  - Types from your database schema
38
38
  - Typed loaders, actions, and APIs
39
- - Server code stays on the server
40
39
  guide:
41
40
  text: Explore Type Safety
42
41
  link: /guide/type-safety
@@ -80,8 +79,8 @@ platform_features:
80
79
  image_alt: List of Void platform commands for access, builds, invitations, and administration
81
80
  - id: platform-security
82
81
  iconify: lucide:shield-check
83
- title: Bring your Own Security
84
- details: Fork and customize your own Void platform based on your team's security standards.
82
+ title: Manage Platform Access
83
+ details: Choose how your team signs in and who can deploy.
85
84
  highlights:
86
85
  - Manage access through Cloudflare Access, Google, GitHub, or OIDC
87
86
  - Control who can sign in and deploy
@@ -11,28 +11,15 @@ outline: deep
11
11
  npx void init
12
12
  ```
13
13
 
14
- New projects get a minimal `AGENTS.md` explaining Void and where to read its docs.
15
- In an existing project, Void asks before creating, appending to, or updating
16
- `AGENTS.md`. It preserves your instructions outside the Void section. Declining
17
- keeps the file unchanged; CI and non-interactive runs skip changes to existing
18
- projects' instructions.
14
+ New projects get an `AGENTS.md` pointing to the Void docs. In existing projects, interactive setup asks before updating the Void section and preserves your other instructions. CI and non-interactive runs skip this step in existing projects.
19
15
 
20
- The complete Markdown docs ship at `node_modules/void/docs/`. Start with
21
- `guide/quickstart.md` for setup and `reference/cli.md` for commands. Agents can
22
- read them directly, even without a linked skill.
16
+ Read the docs for your installed version at `node_modules/void/docs/`. Start with `guide/quickstart.md` for setup or `reference/cli.md` for commands.
23
17
 
24
18
  ## Skills
25
19
 
26
- Skills point your agent to the commands and docs it needs for the task. They link to the installed `void` package, so the guidance matches the version your app uses.
27
-
28
20
  Void ships two skills:
29
21
 
30
22
  - **`void`:** commands and docs for app development.
31
23
  - **`migrate-vite-cloudflare-to-void`:** migration skill for converting existing `@cloudflare/vite-plugin` apps to Void.
32
24
 
33
- Skills are linked automatically by `void init` when it detects a supported
34
- agent's configuration. For example, Claude Code uses `.claude/skills/` and Codex
35
- uses `.agents/skills/`. The skills use the app's installed docs so their guidance
36
- matches its Void version. Globally installed skills can use the docs in their
37
- Void package when there is no local installation. If no agent is detected, the
38
- instructions still point directly to the bundled docs.
25
+ When `void init` detects a supported agent, it links the skills from your installed Void package. For example, Claude Code uses `.claude/skills/` and Codex uses `.agents/skills/`. Globally installed skills can use their bundled docs when no local package is available.
@@ -165,6 +165,87 @@ export CF_ACCESS_READINESS_ORIGIN="https://app.example.com"
165
165
 
166
166
  Set this variable in the shell or CI environment running `void deploy`. Use an exact HTTPS origin for a hostname you control that serves this Worker; Void sends your Access credentials there.
167
167
 
168
+ ### Pull request previews
169
+
170
+ Give each pull request for your static site or SPA a stable preview URL. Deploy to the same name after each push; delete it when the pull request closes:
171
+
172
+ ```sh
173
+ void deploy --platform cloudflare --preview pr-64 --json # create or update
174
+ void project preview delete pr-64 --platform cloudflare # remove
175
+ ```
176
+
177
+ Deploy the site to production once, then configure the [Worker name and account](../reference/cli/deploy.md#void-deploy-preview) in CI. The token needs **Workers Scripts: Edit** and can also deploy production. Only run the preview job for trusted code; the workflow below skips fork and Dependabot pull requests.
178
+
179
+ For example, this pnpm workflow posts the URL on the pull request:
180
+
181
+ ```yaml
182
+ name: Preview
183
+ on:
184
+ pull_request:
185
+ types: [opened, synchronize, reopened, closed]
186
+ permissions:
187
+ contents: read
188
+ pull-requests: write
189
+ concurrency:
190
+ group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
191
+ # A new push cancels an older preview deploy; cleanup waits for it instead.
192
+ cancel-in-progress: ${{ github.event.action != 'closed' }}
193
+ jobs:
194
+ deploy:
195
+ # Fork and Dependabot pull requests get no repository secrets.
196
+ if: >-
197
+ github.event.action != 'closed' &&
198
+ github.event.pull_request.head.repo.full_name == github.repository &&
199
+ github.actor != 'dependabot[bot]'
200
+ runs-on: ubuntu-latest
201
+ steps:
202
+ - uses: actions/checkout@v6
203
+ - uses: pnpm/action-setup@v5
204
+ - uses: actions/setup-node@v6
205
+ with: { node-version: lts/*, check-latest: true, cache: pnpm }
206
+ - run: pnpm install --frozen-lockfile
207
+ - id: preview
208
+ env:
209
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
210
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
211
+ PREVIEW: pr-${{ github.event.pull_request.number }}
212
+ run: |
213
+ pnpm exec void deploy --platform cloudflare --preview "$PREVIEW" --json > preview.json
214
+ url=$(jq -er .previewUrl preview.json)
215
+ echo "url=$url" >> "$GITHUB_OUTPUT"
216
+ # The preview URL never changes for a pull request, so comment once.
217
+ - env:
218
+ GH_TOKEN: ${{ github.token }}
219
+ PR: ${{ github.event.pull_request.number }}
220
+ URL: ${{ steps.preview.outputs.url }}
221
+ run: |
222
+ if ! gh pr view "$PR" --json comments --jq '.comments[].body' | grep -qF "$URL"; then
223
+ gh pr comment "$PR" --body "Preview: $URL"
224
+ fi
225
+ cleanup:
226
+ if: >-
227
+ github.event.action == 'closed' &&
228
+ github.event.pull_request.head.repo.full_name == github.repository &&
229
+ github.actor != 'dependabot[bot]'
230
+ runs-on: ubuntu-latest
231
+ steps:
232
+ # Trusted base-branch code; it still exists after the pull request closes.
233
+ - uses: actions/checkout@v6
234
+ with:
235
+ ref: ${{ github.event.pull_request.base.ref }}
236
+ - uses: pnpm/action-setup@v5
237
+ - uses: actions/setup-node@v6
238
+ with: { node-version: lts/*, check-latest: true, cache: pnpm }
239
+ - run: pnpm install --frozen-lockfile
240
+ - env:
241
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
242
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
243
+ PREVIEW: pr-${{ github.event.pull_request.number }}
244
+ run: pnpm exec void project preview delete "$PREVIEW" --platform cloudflare
245
+ ```
246
+
247
+ Add the same `--dir` and `--spa` flags as your production deploy. Using npm, Yarn or Bun? Use the setup steps that `void init --github` writes. If an earlier job builds the site, download its output and add `--skip-build`. Preview URLs are public; see [`void deploy --preview`](../reference/cli/deploy.md#void-deploy-preview) for the JSON output, naming rules and limits.
248
+
168
249
  ### Databases and secrets
169
250
 
170
251
  For PostgreSQL and MySQL, supply `DATABASE_URL` to the deploy process. Void uses it for Hyperdrive and migrations without writing it to config. MySQL schema changes can partially apply before an error; see [failed MySQL migrations](../guide/database/mysql.md#failed-migrations).
@@ -183,7 +264,7 @@ If readiness or trigger updates fail, Void restores the previous deployment. If
183
264
 
184
265
  Finish or cancel gradual rollouts in Cloudflare before deploying through Void.
185
266
 
186
- For an existing Durable Object Worker that Cloudflare cannot stage, review the changes and use:
267
+ If you add, rename, or remove a Workflow or Durable Object class, Cloudflare may ask you to deploy the existing Worker atomically. Review the class changes, then run the deploy again with `--atomic`.
187
268
 
188
269
  ```sh
189
270
  void deploy --platform cloudflare --atomic
@@ -202,12 +283,27 @@ void project rollback [version]
202
283
 
203
284
  Void restores recorded triggers along with the code. Versions without a complete trigger snapshot keep current routes and schedules. Database recovery is separate: use [`void db restore`](../reference/cli/database.md#void-db-restore) to undo D1 migrations.
204
285
 
286
+ #### Clear a deployment with a candidate at 0%
287
+
288
+ If `void deploy` reports two versions, one at 100% and one at 0%, the live version is still serving all traffic. To clear the unused candidate before retrying, check the deployment in Cloudflare.
289
+
290
+ 1. Pause other deploys and let any in progress finish. In the Cloudflare dashboard, select the account and Worker named in the error, then open **Deployments**.
291
+ 2. Confirm **Active Deployment** still shows the exact versions and percentages Void reported. Continue only if the 0% version is unused, including by version overrides.
292
+ 3. Select **Rollback** on the live version. [Cloudflare's split deployment rollback guide](https://developers.cloudflare.com/workers/versions-and-deployments/rollbacks/#rolling-back-from-a-split-deployment)
293
+
294
+ Retry when **Active Deployment** lists only the live version. If Void still reports the pair, wait and retry.
295
+
296
+ Cloudflare can reject a rollback after a secret change (error `10220`).
297
+
298
+ A newer inactive upload can still block a first link or a static deploy that inherits secrets after rollback. If Void reports a version-history or secret inheritance error, inspect the active and latest Worker versions in Cloudflare before retrying.
299
+
205
300
  #### Scope and limitations
206
301
 
207
302
  Void deploys native apps, static sites, SPAs, supported SSGs, and Cloudflare builds from TanStack Start, React Router, SvelteKit, Nuxt, Analog, and Astro. The vinext adapters are experimental.
208
303
 
209
304
  - Native apps support Void routing rules. Framework apps on the direct target must configure redirects, rewrites, fallbacks, and headers through their framework or Worker.
210
305
  - `--skip-build` works for existing static output. Worker apps require a fresh build.
306
+ - `--preview` works for static sites and SPAs only.
211
307
  - Named Cloudflare environments aren't supported. Use a separate Void project config for each target.
212
308
  - Sandbox requires Workers Paid and Docker. See [Sandbox requirements](../guide/sandboxes.md#deployment) for plan and token permissions.
213
309
  - Email to arbitrary recipients, and all sending from apps without `email/` handlers, requires Workers Paid. Apps with handlers keep inbound mail and verified recipients on Workers Free. See [Email](../guide/email/domains.md#your-own-cloudflare-account).
@@ -217,7 +313,7 @@ Commit Durable Object migration history in `void.lock.json`. Do not delete or re
217
313
 
218
314
  ### Managing the deployed app
219
315
 
220
- `void secret`, `void domain`, `void project status|list|logs|rollback`, and remote `void db` commands use the selected account and Worker. Logs are a live tail.
316
+ `void secret`, `void domain`, `void project status|list|logs|rollback`, `void project preview delete`, and remote `void db` commands use the selected account and Worker. Logs are a live tail.
221
317
 
222
318
  Custom domain commands update routes immediately. If a first deployment times out while DNS or TLS is propagating, check the domain in Cloudflare and retry once `/__void/ready` is reachable.
223
319
 
@@ -5,7 +5,7 @@ outline: deep
5
5
 
6
6
  # Analog
7
7
 
8
- Use Void with [Analog](https://analogjs.org/) for resource detection, typed database queries, and migrations. Analog keeps its own build and Cloudflare integration; Void plugs into its Vite configuration.
8
+ Use Void with [Analog](https://analogjs.org/) for resource detection, typed database queries, and migrations.
9
9
 
10
10
  ## Setup
11
11
 
@@ -22,7 +22,7 @@ cd my-app
22
22
  npm install -D void nitro-cloudflare-dev
23
23
  ```
24
24
 
25
- Void provides the local Cloudflare binding runtime. `nitro-cloudflare-dev` creates the platform proxy during development so that `void/db`, `void/kv`, and other runtime helpers can access bindings.
25
+ Use `nitro-cloudflare-dev` for local Cloudflare bindings.
26
26
 
27
27
  ### 3. Configure `vite.config.ts`
28
28
 
@@ -53,8 +53,6 @@ The `void/nitro` module gives Analog API routes and page server loads your app's
53
53
 
54
54
  ### 4. Create `void.config.ts`
55
55
 
56
- Void generates the Cloudflare config used by Analog's development runtime:
57
-
58
56
  ```ts
59
57
  import { defineConfig } from 'void/config';
60
58
 
@@ -72,18 +70,20 @@ export default defineConfig({
72
70
  ### 5. Deploy
73
71
 
74
72
  ```bash
75
- void auth login
73
+ void connect --platform cloudflare
76
74
  void deploy
77
75
  ```
78
76
 
79
- ## Using Void Features
77
+ `void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md).
80
78
 
81
- Most [Void platform features](../../guide/app-types.md#void-apps) work with Analog. Use them in page server loaders, actions, and API routes:
79
+ ## Using Void Features
82
80
 
83
- Void-managed auth is not supported in framework mode yet. Use Better Auth's official integration directly for now.
81
+ Use Void resources in page server loaders, actions, and API routes. For authentication, use your framework’s Better Auth integration.
84
82
 
85
83
  ### Database
86
84
 
85
+ To show the users from your database on an Analog page, query your `users` table in its server loader.
86
+
87
87
  ```ts
88
88
  // src/app/pages/users.server.ts
89
89
  import type { PageServerLoad } from '@analogjs/router';
@@ -97,14 +97,12 @@ export const load = async ({ event }: PageServerLoad) => {
97
97
 
98
98
  ### Other resources
99
99
 
100
- Use [KV](../../guide/kv.md), [object storage](../../guide/storage.md), and [AI](../../guide/ai.md) from server-side code with the same imports as a Void app. Add [cron jobs](../../guide/jobs.md) in `crons/` and [queue consumers](../../guide/queues.md) in `queues/`.
100
+ See [supported resources and background jobs](./overview.md#feature-support) for KV, storage, AI, cron jobs, and queues.
101
101
 
102
102
  ### Environment Variables
103
103
 
104
104
  Declare variables in `env.ts` and read them with `import { env } from "void/env"`. See [Environment Variables](../../guide/env-vars.md) for local values, production secrets, and public `VITE_*` values.
105
105
 
106
- `void/env` replaces the H3 event context and `import { env } from "cloudflare:workers"` for env-var access. Keep those around when you need raw binding access (D1, KV, R2, etc.).
107
-
108
106
  ## Accessing Bindings Directly
109
107
 
110
108
  You can also access raw Cloudflare bindings via the H3 event context or the `cloudflare:workers` module:
@@ -5,13 +5,9 @@ outline: deep
5
5
 
6
6
  # Astro
7
7
 
8
- Use Void with [Astro](https://astro.build/) for resource detection, typed database queries, and migrations. Astro keeps its own build and Cloudflare integration; Void plugs into its Vite configuration.
8
+ Use Void with [Astro](https://astro.build/) for resource detection, typed database queries, and migrations.
9
9
 
10
- ::: warning Astro 7 required
11
-
12
- - [Astro 7+](https://astro.build/blog/astro-7/) is required because Void needs Vite 8.
13
- - You also need to enable `"nodejs_als"` under `compatibility_flags` in your Cloudflare config.
14
- :::
10
+ Use [Astro 7 or later](https://astro.build/blog/astro-7/).
15
11
 
16
12
  ## Setup
17
13
 
@@ -43,8 +39,6 @@ export default defineConfig({
43
39
 
44
40
  ### 4. Create `void.config.ts`
45
41
 
46
- Void uses this config for the Cloudflare adapter during development and deployment:
47
-
48
42
  ```ts
49
43
  import { defineConfig } from 'void/config';
50
44
 
@@ -62,15 +56,22 @@ export default defineConfig({
62
56
  ### 5. Deploy
63
57
 
64
58
  ```bash
65
- void auth login
59
+ void connect --platform cloudflare
66
60
  void deploy
67
61
  ```
68
62
 
69
- ## Using Void Features
63
+ `void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md).
70
64
 
71
- Most [Void platform features](../../guide/app-types.md#void-apps) work with Astro in both local dev and production when using Astro 7+ with `nodejs_als`.
65
+ On your own Cloudflare account, Void deploys an Astro app as a Worker, and Astro only builds one when a route sets `export const prerender = false` or `output` is `'server'`. If every page is prerendered, which is Astro's default, build the site and deploy its files instead:
72
66
 
73
- Void-managed auth is not supported in framework mode yet. Use Better Auth's official Astro integration directly for now.
67
+ ```bash
68
+ npm run build
69
+ void deploy --dir dist/client
70
+ ```
71
+
72
+ ## Using Void Features
73
+
74
+ Use Void resources in server-rendered pages and API routes. For authentication, use your framework’s Better Auth integration.
74
75
 
75
76
  Pages and API routes that access runtime bindings must opt out of prerendering:
76
77
 
@@ -82,7 +83,7 @@ export const prerender = false;
82
83
 
83
84
  ### Database
84
85
 
85
- Use `void/db` in API routes and server-side code:
86
+ For an API route that returns the current list of users, query the `users` table on each request.
86
87
 
87
88
  ```ts
88
89
  import { users } from '@schema';
@@ -99,15 +100,13 @@ export const GET: APIRoute = async () => {
99
100
 
100
101
  ### Other resources
101
102
 
102
- Use [KV](../../guide/kv.md), [object storage](../../guide/storage.md), and [AI](../../guide/ai.md) from server-side code with the same imports as a Void app. Add [cron jobs](../../guide/jobs.md) in `crons/` and [queue consumers](../../guide/queues.md) in `queues/`.
103
+ See [supported resources and background jobs](./overview.md#feature-support) for KV, storage, AI, cron jobs, and queues.
103
104
 
104
105
  ### Environment Variables
105
106
 
106
107
  Declare variables in `env.ts` and read them with `import { env } from "void/env"`. See [Environment Variables](../../guide/env-vars.md) for local values, production secrets, and public `VITE_*` values.
107
108
 
108
- Void always uses `VITE_*` for client-exposed schema keys, including in Astro projects. Astro's separate `PUBLIC_*` convention still applies to direct `import.meta.env` access, but it does not change the `void/env` server/client boundary.
109
-
110
- `void/env` replaces [`astro:env`](https://docs.astro.build/en/guides/environment-variables/) for env-var access. Use `env` from `cloudflare:workers` when you need raw binding access (D1, KV, R2, etc.).
109
+ Use `VITE_*` for public keys in the Void schema. Astro’s `PUBLIC_*` prefix applies to `import.meta.env`.
111
110
 
112
111
  ## Accessing Bindings Directly
113
112
 
@@ -5,7 +5,7 @@ outline: deep
5
5
 
6
6
  # Nuxt
7
7
 
8
- Use Void with [Nuxt](https://nuxt.com/) for resource detection, typed database queries, and migrations. Nuxt keeps its own build and Cloudflare integration; Void plugs into its Vite configuration.
8
+ Use Void with [Nuxt](https://nuxt.com/) for resource detection, typed database queries, and migrations.
9
9
 
10
10
  ## Setup
11
11
 
@@ -22,8 +22,6 @@ cd my-app
22
22
  npm install -D void
23
23
  ```
24
24
 
25
- Void includes the Cloudflare tooling used by Nuxt's platform proxy during development.
26
-
27
25
  ### 3. Configure `nuxt.config.ts`
28
26
 
29
27
  ```ts
@@ -47,14 +45,12 @@ export default defineNuxtConfig({
47
45
  });
48
46
  ```
49
47
 
50
- The `void/nitro` module gives Nuxt server routes your app's `void/db` and `@schema`. The top-level `alias` lets `nuxi typecheck` resolve `@schema`, because Nuxt also checks server routes with the app's types. `cloudflare.dev` gives the development server the bindings from Void's generated Cloudflare config; Nuxt runs it in development when `compatibilityDate` is `2025-07-15` or later.
48
+ Use `void/nitro` to access `void/db` and `@schema` from server routes. Keep the top-level `@schema` alias for `nuxi typecheck`. Nuxt requires `compatibilityDate` of `2025-07-15` or later for local Cloudflare bindings.
51
49
 
52
- The database module supports Nitro 2 and Nitro 3 prereleases. Use the Cloudflare development configuration for your Nuxt version; Nitro 3 uses its own Worker runner.
50
+ For Nitro 2 or Nitro 3 prereleases, use the Cloudflare development configuration for your Nuxt version.
53
51
 
54
52
  ### 4. Create `void.config.ts`
55
53
 
56
- Void generates the Cloudflare config used by Nuxt's development runtime:
57
-
58
54
  ```ts
59
55
  import { defineConfig } from 'void/config';
60
56
 
@@ -70,18 +66,20 @@ export default defineConfig({
70
66
  ### 5. Deploy
71
67
 
72
68
  ```bash
73
- void auth login
69
+ void connect --platform cloudflare
74
70
  void deploy
75
71
  ```
76
72
 
77
- ## Using Void Features
73
+ `void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md).
78
74
 
79
- Most [Void platform features](../../guide/app-types.md#void-apps) work with Nuxt. Use them in server routes, API handlers, and middleware:
75
+ ## Using Void Features
80
76
 
81
- Void-managed auth is not supported in framework mode yet. Use Better Auth's official Nuxt integration directly for now.
77
+ Use Void resources in server routes and middleware. For authentication, use your framework’s Better Auth integration.
82
78
 
83
79
  ### Database
84
80
 
81
+ To serve a list of users at `/api/users`, query the `users` table in a Nuxt server route.
82
+
85
83
  ```ts
86
84
  // server/api/users.get.ts
87
85
  import { users } from '@schema';
@@ -94,13 +92,13 @@ export default defineEventHandler(async () => {
94
92
 
95
93
  ### Other resources
96
94
 
97
- Use [KV](../../guide/kv.md), [object storage](../../guide/storage.md), and [AI](../../guide/ai.md) from server-side code with the same imports as a Void app. Add [cron jobs](../../guide/jobs.md) in `crons/` and [queue consumers](../../guide/queues.md) in `queues/`.
95
+ See [supported resources and background jobs](./overview.md#feature-support) for KV, storage, AI, cron jobs, and queues.
98
96
 
99
97
  ### Environment Variables
100
98
 
101
99
  Declare variables in `env.ts` and read them with `import { env } from "void/env"`. See [Environment Variables](../../guide/env-vars.md) for local values, production secrets, and public `VITE_*` values.
102
100
 
103
- `void/env` replaces `useRuntimeConfig()` and `event.context.cloudflare.env` for env-var access. Keep `event.context.cloudflare.env` around when you need raw binding access (D1, KV, R2, etc.), and `useRuntimeConfig()` when you need non-env runtime config.
101
+ Use `useRuntimeConfig()` for other Nuxt runtime settings.
104
102
 
105
103
  ## Accessing Bindings Directly
106
104
 
@@ -5,11 +5,9 @@ outline: deep
5
5
 
6
6
  # Meta-Frameworks
7
7
 
8
- Keep your framework's routes and rendering, and add Void for databases, storage, jobs, and deployment. The guides in this section show how to connect each framework to Void.
8
+ Use your framework’s routes and rendering with Void’s [database](../../guide/database.md), [storage](../../guide/storage.md), and [deployment](../../guide/deployment.md).
9
9
 
10
- Add `voidPlugin()` to the framework's Vite config. It detects resource usage, generates database types, manages migrations, and prepares the app for `void deploy`.
11
-
12
- TanStack Start and React Router use the Cloudflare Vite plugin provided by Void. SvelteKit, Nuxt, Analog, and Astro use their own Cloudflare adapters. The setup differs, but your framework continues to handle routing and rendering.
10
+ Add `voidPlugin()` to the framework’s Vite config. TanStack Start and React Router use the Cloudflare plugin included with Void. SvelteKit, Nuxt, Analog, and Astro use their own Cloudflare integrations.
13
11
 
14
12
  ![void relationships with meta frameworks and deployment targets](./void-relationships.svg)
15
13
 
@@ -30,17 +28,17 @@ In vinext apps, `middleware.ts` and `proxy.ts` also apply to files in `public/`.
30
28
 
31
29
  ## Feature Support
32
30
 
33
- With `voidPlugin()` added to the framework's Vite config, frameworks get most of the same backend/platform features as [Void apps](../../guide/app-types.md#void-apps):
34
-
35
31
  - **Binding inference:** D1, KV, R2, AI, and queues are detected from source code.
36
32
  - **Typed database:** query types come from your Drizzle schema.
37
33
  - **Migrations:** local D1 is updated on dev startup, and migrations are validated and deployed with `void deploy`.
38
- - **Runtime helpers:** `void/db`, `void/kv`, `void/storage`, and `void/ai` give you typed access to Cloudflare bindings in dev and production.
34
+ - **Runtime helpers:** [`void/db`](../../guide/database.md), [`void/kv`](../../guide/kv.md), [`void/storage`](../../guide/storage.md), and [`void/ai`](../../guide/ai.md) give you typed access to Cloudflare bindings in dev and production.
39
35
  - **Environment variables:** TanStack Start, React Router, and vinext support validated values from [`void/env`](#environment-variables).
40
- - **Auth:** Void-managed auth is not supported in framework mode yet. For now, use Better Auth's official integration for your framework.
41
- - **Cron jobs:** scheduled handlers via the `crons/` directory.
42
- - **Queue consumers:** typed producers and consumers via the `queues/` directory.
43
- - **Revalidation and prerendering:** configure them with [`routing.revalidate`](../../guide/edge/revalidation.md) and [`routing.prerender`](../../guide/edge/prerendering.md) in `void.config.ts`. Void apps can also set these per page in companion `.server.ts` files.
36
+ - **Auth:** Use Better Auth’s integration for your framework.
37
+ - **[Cron jobs](../../guide/jobs.md):** scheduled handlers via the `crons/` directory.
38
+ - **[Queue consumers](../../guide/queues.md):** typed producers and consumers via the `queues/` directory.
39
+ - **Revalidation and prerendering:** configure them with [`routing.revalidate`](../../guide/edge/revalidation.md) and [`routing.prerender`](../../guide/edge/prerendering.md) in `void.config.ts`.
40
+
41
+ To test a queue consumer in vinext, start the dev server and use the [manual queue trigger](../../guide/queues.md#local-development) with the port it prints and the token in `.void/dev-trigger-token`. Calling `send()` in dev or preview accepts the message without running the local consumer. Keep `queues/` and `env.ts` as they were at build time when using preview.
44
42
 
45
43
  For framework apps, Void revalidation caches public HTML document responses with both `void deploy` and `void deploy --platform cloudflare`. Client data requests continue to use the framework's own behavior. A response with `Set-Cookie` or `Cache-Control: private`, `no-store`, or `no-cache` is never shared.
46
44
 
@@ -74,14 +72,14 @@ export default defineConfig({
74
72
  });
75
73
  ```
76
74
 
77
- | Field | Purpose |
78
- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
79
- | `inference.build` | Override the default build command |
80
- | `inference.scanDirs` | Directories to scan for binding inference (defaults vary by framework) |
81
- | `routing.prerender` | Paths to prerender as static HTML at deploy time |
82
- | `routing.revalidate` | Default revalidation TTL in seconds for cached responses |
83
- | `inference.bindings` | Override inferred bindings. You only need this if auto-detection is not doing what you want. Accepts `true` or a custom binding name such as `"db": "MY_DB"`. |
84
- | `routing.notFound` | **Ignored.** SvelteKit, Nuxt, Analog, and Astro pin `not_found_handling` to `"none"` — the framework worker owns unmatched HTML. `void deploy` warns if set. |
75
+ | Field | Purpose |
76
+ | -------------------- | ------------------------------------------------------------------------- |
77
+ | `inference.build` | Override the default build command |
78
+ | `inference.scanDirs` | Directories to scan for binding inference (defaults vary by framework) |
79
+ | `routing.prerender` | Paths to prerender as static HTML at deploy time |
80
+ | `routing.revalidate` | Default revalidation TTL in seconds for cached responses |
81
+ | `inference.bindings` | Enable, disable, or rename an inferred binding. |
82
+ | `routing.notFound` | Configure unmatched routes in SvelteKit, Nuxt, Analog, or Astro directly. |
85
83
 
86
84
  See [Configuration](../../reference/config.md) for the full reference.
87
85
 
@@ -101,7 +99,7 @@ export default defineConfig({
101
99
  });
102
100
  ```
103
101
 
104
- Existing bindings are preserved. D1, KV, and R2 use local placeholder IDs until deployment. For a project connected directly to Cloudflare, importing `void/ai` adds a remote Workers AI binding during development; [Cloudflare login](../../guide/ai.md#local-development) is required to use it. Direct deployments also include the inferred AI binding.
102
+ For a project connected directly to Cloudflare, Workers AI runs remotely in development. [Sign in to Cloudflare](../../guide/ai.md#local-development) to use it.
105
103
 
106
104
  Void combines these settings with inferred bindings and records provisioned resource IDs in `void.lock.json`. Commit both files.
107
105