void 1.12.1 → 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.
- package/README.md +1 -0
- package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
- package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
- package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
- package/dist/args-DrnTI35r.mjs +88 -0
- package/dist/args-MnQnqypt.mjs +1 -0
- package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
- package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
- package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
- package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
- package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
- package/dist/bindings-C7zOgxT3.d.mts +28 -0
- package/dist/browser-run-BKgZVwLk.mjs +124 -0
- package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
- package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
- package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
- package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
- package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
- package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
- package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
- package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
- package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
- package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
- package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
- package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +111 -47
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli/json-command-process.d.mts +6 -0
- package/dist/cli/json-command-process.mjs +91 -0
- package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
- package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
- package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
- package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
- package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
- package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
- package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
- package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
- package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
- package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
- package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
- package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
- package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
- package/dist/collect-Aam0GwAU.mjs +1 -0
- package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
- package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
- package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
- package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
- package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
- package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
- package/dist/config-entry.d.mts +1 -1
- package/dist/config-write-dKLINlm2.mjs +80 -0
- package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
- package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
- package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
- package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
- package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
- package/dist/db-args-Cx1y4vZn.mjs +1 -0
- package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
- package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
- package/dist/deploy-DZ9j7MC4.mjs +2 -0
- package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
- package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
- package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
- package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
- package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
- package/dist/deploy.mjs +14 -10
- package/dist/discover-BZWVWeQs.mjs +1 -0
- package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
- package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
- package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
- package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
- package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
- package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
- package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
- package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
- package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
- package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
- package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
- package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
- package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
- package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
- package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
- package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
- package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
- package/dist/gen-DaayFP9v.mjs +1 -0
- package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
- package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
- package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
- package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
- package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
- package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
- package/dist/help-DWGHmt_n.mjs +1 -0
- package/dist/html-5sfGLjiI.d.mts +3 -0
- package/dist/html-DPSOBDCh.mjs +1 -0
- package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
- package/dist/index-Cvqotnhc.d.mts +91 -0
- package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
- package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +536 -170
- package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
- package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
- package/dist/input-jcps6lAn.mjs +64 -0
- package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
- package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
- package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
- package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
- package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
- package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
- package/dist/login-BJwPhV_S.mjs +1 -0
- package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
- package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
- package/dist/migrate-BHD46A31.mjs +1 -0
- package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
- package/dist/nitro.mjs +3 -3
- package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
- package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
- package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
- package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
- package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
- package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
- package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
- package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
- package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
- package/dist/output-OYwcEwok.mjs +1 -0
- package/dist/pages/client.d.mts +34 -20
- package/dist/pages/client.mjs +172 -74
- package/dist/pages/index.d.mts +11 -4
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +2 -2
- package/dist/pages/islands-plugin.mjs +5 -3
- package/dist/pages/protocol.d.mts +3 -3
- package/dist/pages/protocol.mjs +3 -3
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
- package/dist/platform-C3Q44RJ8.mjs +250 -0
- package/dist/platform-args-BSyVZESg.mjs +1 -0
- package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
- package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
- package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
- package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
- package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
- package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
- package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
- package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
- package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
- package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
- package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
- package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
- package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
- package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
- package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
- package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
- package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
- package/dist/prepare-CLl_TA_r.mjs +1 -0
- package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
- package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
- package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
- package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
- package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
- package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
- package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
- package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
- package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
- package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
- package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
- package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
- package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
- package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
- package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
- package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
- package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
- package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
- package/dist/resolve-project-Bob_rEi2.mjs +1 -0
- package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
- package/dist/resource-binding-5nI30acw.mjs +20 -0
- package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
- package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
- package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
- package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
- package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
- package/dist/routes-stub.d.mts +18 -2
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
- package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
- package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
- package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
- package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
- package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
- package/dist/runtime/ai/index.mjs +1 -1
- package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
- package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
- package/dist/runtime/client/fetch-server.mjs +1 -1
- package/dist/runtime/client/fetch-stream.mjs +1 -1
- package/dist/runtime/client/fetch.mjs +1 -1
- package/dist/runtime/client/index.mjs +2 -2
- package/dist/runtime/client/react.mjs +2 -2
- package/dist/runtime/client/solid.mjs +2 -2
- package/dist/runtime/client/svelte.mjs +2 -2
- package/dist/runtime/client/vue.mjs +2 -2
- package/dist/runtime/durable/index.mjs +11 -26
- package/dist/runtime/env/runtime.d.mts +2 -10
- package/dist/runtime/handler/index.d.mts +3 -2
- package/dist/runtime/handler/index.mjs +2 -2
- package/dist/runtime/handler/validator.d.mts +1 -1
- package/dist/runtime/handler/validator.mjs +1 -1
- package/dist/runtime/html.d.mts +2 -0
- package/dist/runtime/html.mjs +1 -0
- package/dist/runtime/image/index.d.mts +103 -0
- package/dist/runtime/image/index.mjs +89 -0
- package/dist/runtime/jsx/index.d.mts +3 -0
- package/dist/runtime/jsx/index.mjs +2 -0
- package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
- package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
- package/dist/runtime/limits/index.mjs +1 -1
- package/dist/runtime/live/client.d.mts +2 -2
- package/dist/runtime/live/index.d.mts +1 -1
- package/dist/runtime/routing/index.d.mts +87 -4
- package/dist/runtime/routing/index.mjs +59 -20
- package/dist/runtime/routing/route-url.d.mts +2 -2
- package/dist/runtime/routing/route-url.mjs +1 -1
- package/dist/runtime/sandbox/index.mjs +1 -1
- package/dist/runtime/sse/client.d.mts +1 -1
- package/dist/runtime/workflows/entry.d.mts +8 -0
- package/dist/runtime/workflows/entry.mjs +49 -0
- package/dist/runtime/workflows/index.d.mts +3 -0
- package/dist/runtime/workflows/index.mjs +77 -0
- package/dist/runtime/ws/index.d.mts +1 -1
- package/dist/runtime/ws/index.mjs +2 -2
- package/dist/runtime/ws/room.d.mts +1 -1
- package/dist/runtime/ws/server.d.mts +2 -2
- package/dist/runtime-Db72hLY-.d.mts +11 -0
- package/dist/scan-BxhB4BA-.mjs +946 -0
- package/dist/scan-D2ISAobj.mjs +308 -0
- package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
- package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
- package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
- package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
- package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
- package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
- package/dist/standard-schema-DvMcZGMK.mjs +8 -0
- package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
- package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
- package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
- package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
- package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
- package/dist/validate-p9b3r1k4.mjs +1 -0
- package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
- package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
- package/dist/version-metadata-CEla0kgi.mjs +23 -0
- package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
- package/dist/wrangler-BT7qrzWc.mjs +1 -0
- package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
- package/docs/guide/ai.md +1 -1
- package/docs/guide/app-types.md +6 -23
- package/docs/guide/auth.md +2 -4
- package/docs/guide/database/d1.md +21 -67
- package/docs/guide/database/mysql.md +8 -0
- package/docs/guide/database/postgresql.md +2 -2
- package/docs/guide/database.md +1 -1
- package/docs/guide/deployment.md +18 -0
- package/docs/guide/edge/prerendering.md +3 -7
- package/docs/guide/edge/redirects.md +1 -1
- package/docs/guide/edge/revalidation.md +8 -17
- package/docs/guide/edge/rewrites.md +1 -1
- package/docs/guide/edge/static-assets.md +10 -22
- package/docs/guide/email/domains.md +3 -1
- package/docs/guide/email/receiving.md +2 -2
- package/docs/guide/email/sending.md +3 -1
- package/docs/guide/env-vars.md +2 -0
- package/docs/guide/image-generation.md +142 -0
- package/docs/guide/index.md +17 -15
- package/docs/guide/jobs.md +2 -4
- package/docs/guide/kv.md +1 -1
- package/docs/guide/og-images.md +83 -0
- package/docs/guide/pages-routing/actions-and-forms.md +6 -4
- package/docs/guide/pages-routing/errors.md +20 -4
- package/docs/guide/pages-routing/head.md +5 -5
- package/docs/guide/pages-routing/islands.md +4 -14
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +129 -15
- package/docs/guide/platform/administration/plans.md +47 -16
- package/docs/guide/platform/administration/projects.md +10 -0
- package/docs/guide/platform/administration/security-audits.md +76 -30
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/platform/installation/ci.md +0 -4
- package/docs/guide/platform/installation/credentials.md +1 -1
- package/docs/guide/platform/installation/maintenance.md +11 -9
- package/docs/guide/platform/installation/prerequisites.md +3 -1
- package/docs/guide/platform/installation/setup.md +7 -15
- package/docs/guide/platform/installation/uninstall.md +6 -12
- package/docs/guide/project-collaboration.md +1 -4
- package/docs/guide/queues.md +6 -8
- package/docs/guide/quickstart.md +6 -8
- package/docs/guide/sandboxes.md +1 -1
- package/docs/guide/self-hosted-platform.md +4 -7
- package/docs/guide/server-routing.md +5 -3
- package/docs/guide/ssg.md +1 -1
- package/docs/guide/type-safety.md +74 -10
- package/docs/guide/websockets.md +5 -7
- package/docs/guide/workflows.md +122 -0
- package/docs/index.md +2 -3
- package/docs/integrations/agents.md +3 -16
- package/docs/integrations/cloudflare.md +98 -2
- package/docs/integrations/frameworks/analog.md +9 -11
- package/docs/integrations/frameworks/astro.md +16 -17
- package/docs/integrations/frameworks/nuxt.md +11 -13
- package/docs/integrations/frameworks/overview.md +18 -20
- package/docs/integrations/frameworks/react-router.md +55 -6
- package/docs/integrations/frameworks/sveltekit.md +8 -6
- package/docs/integrations/frameworks/tanstack-start.md +10 -6
- package/docs/integrations/hono.md +27 -12
- package/docs/integrations/nodejs-bun-deno.md +10 -2
- package/docs/reference/api/database.md +8 -10
- package/docs/reference/api/env.md +2 -2
- package/docs/reference/api/handlers.md +1 -1
- package/docs/reference/api/html.md +45 -0
- package/docs/reference/api/pages.md +118 -167
- package/docs/reference/api/rewrites.md +5 -5
- package/docs/reference/api/types.md +13 -6
- package/docs/reference/api/workflows.md +48 -0
- package/docs/reference/api.md +7 -1
- package/docs/reference/cli/database.md +22 -10
- package/docs/reference/cli/deploy.md +49 -4
- package/docs/reference/cli/domains.md +7 -3
- package/docs/reference/cli/email.md +3 -1
- package/docs/reference/cli/platform-installation.md +9 -53
- package/docs/reference/cli/platform-security.md +36 -8
- package/docs/reference/cli/platform-users.md +11 -1
- package/docs/reference/cli/platform-zero-trust.md +1 -1
- package/docs/reference/cli/project.md +52 -11
- package/docs/reference/cli/setup.md +8 -10
- package/docs/reference/cli.md +49 -47
- package/docs/reference/config.md +22 -8
- package/docs/reference/resource-inference.md +8 -1
- package/docs/reference/structure.md +5 -0
- package/package.json +52 -25
- package/schema.json +20 -1
- package/skills/void/SKILL.md +60 -54
- package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
- package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
- package/dist/cli/db-execute-process.d.mts +0 -2
- package/dist/cli/db-execute-process.mjs +0 -57
- package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
- package/dist/collect-B6nlSnsb.mjs +0 -1
- package/dist/db-args-BvMwAber.mjs +0 -1
- package/dist/deploy-Do6FWqon.mjs +0 -2
- package/dist/discover-D2KGP3cR.mjs +0 -1
- package/dist/entry-Bwb9ev8K.mjs +0 -113
- package/dist/gen-vhBDHs3q.mjs +0 -1
- package/dist/help-fKPzcTJv.mjs +0 -1
- package/dist/isr-config-DiTnL9Tb.mjs +0 -115
- package/dist/login-DECm3e9b.mjs +0 -1
- package/dist/migrate-C9aoWLvY.mjs +0 -1
- package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
- package/dist/output-D7K9TWIA.mjs +0 -1
- package/dist/platform-args-CMwMoiLp.mjs +0 -1
- package/dist/prepare-DcwigRUS.mjs +0 -1
- package/dist/providers-D5P8j_8D.d.mts +0 -5
- package/dist/resolve-project-YsTH-U9I.mjs +0 -1
- package/dist/static-exports-s7P86Ngp.mjs +0 -354
- package/dist/validate-CZYUIfR-.mjs +0 -1
- package/dist/wrangler-Dq269bjx.mjs +0 -1
- package/docs/guide/platform/development/local.md +0 -120
- package/docs/guide/platform/development/runtime.md +0 -115
- package/docs/guide/platform/development/schema-ci.md +0 -44
- package/docs/guide/platform-development.md +0 -16
|
@@ -116,9 +116,10 @@ An upgrade validates the runtime, applies supported pending migrations, deploys
|
|
|
116
116
|
|
|
117
117
|
Install, upgrade, and repair also publish saved [AI Gateway logging](/reference/cli/platform-users#ai-gateway-logging) settings. Affected projects may show `pending` for about 2 minutes afterward, including projects returning to `inherit`. Check progress with `void platform project show <project-id>`.
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
If the upgrade reports a permission error, look for the credential name. Void checks access to the Cloudflare account, Workers, and existing R2 buckets before it starts, and lists the missing permissions together.
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
- **Management token.** Set `CLOUDFLARE_API_TOKEN` to a valid management token scoped to the installation’s account, then retry. It overrides the saved token.
|
|
122
|
+
- **Runtime token.** With browser login, Void uses the runtime token for AI Gateway. Set `VOID_PLATFORM_RUNTIME_CLOUDFLARE_API_TOKEN` to replace the token saved on this machine. You can also use a management token with **Account → AI Gateway → Edit** in `CLOUDFLARE_API_TOKEN` to switch from browser login.
|
|
122
123
|
|
|
123
124
|
Some upgrades pause application traffic until the new version passes health checks. If a command fails while traffic is paused:
|
|
124
125
|
|
|
@@ -126,6 +127,8 @@ Some upgrades pause application traffic until the new version passes health chec
|
|
|
126
127
|
2. Fix the reported problem.
|
|
127
128
|
3. Run the printed resume command with the same runtime. Traffic resumes when it succeeds.
|
|
128
129
|
|
|
130
|
+
An upgrade that first installs the security scan scheduler pauses traffic while Cloudflare creates its Durable Object class. If the upgrade stops after that point, resume with the same runtime. Cloudflare can no longer activate an older API Worker that lacks the class.
|
|
131
|
+
|
|
129
132
|
::: details Migration safety, credential rotation, and rollback
|
|
130
133
|
|
|
131
134
|
To update the runtime Cloudflare token, GitHub OAuth credentials when GitHub login is enabled, or R2 credentials,
|
|
@@ -148,7 +151,9 @@ void platform rollback [id] --runtime /path/to/earlier/runtime --plan
|
|
|
148
151
|
void platform rollback [id] --runtime /path/to/earlier/runtime
|
|
149
152
|
```
|
|
150
153
|
|
|
151
|
-
|
|
154
|
+
Use Void CLI 1.13 or later to manage an installation running a runtime with managed Workflows. Once an installation has Workflow resources or saves Workflow limits in its plan catalog, choose a rollback runtime that supports managed Workflows.
|
|
155
|
+
|
|
156
|
+
Keep the earlier runtime files if you need rollback. If the installed version is a custom build, also pass its files with `--from-runtime /path/to/current/runtime`. Void checks that the earlier version can run against your current database and refuses incompatible rollbacks. A later `upgrade` can move forward again. See [Platform Development](https://github.com/voidzero-dev/void/blob/main/platform/meta/development/runtime.md#deploying-your-runtime) for working with custom builds.
|
|
152
157
|
|
|
153
158
|
Do not roll back to 0.26.0 or earlier after upgrading to a later release. Void does not refuse this rollback, but those releases reject the credentials that later releases give your apps. Every project deployed or rotated since the upgrade loses AI, email, ISR revalidation, remote D1, KV, and R2, and prerendering until you upgrade again. If you have rolled back that far, upgrade again, then run `void platform system rotate-proxy-tokens --all --yes` and check with `--plan` until nothing is pending or failed.
|
|
154
159
|
|
|
@@ -193,14 +198,11 @@ the CLI without action on the status page. During maintenance, navigating the
|
|
|
193
198
|
admin UI automatically redirects to `/admin/status`. You can also open it
|
|
194
199
|
directly on your platform API origin and sign in as an administrator.
|
|
195
200
|
|
|
196
|
-
The
|
|
197
|
-
the traffic state reported by the API. It refreshes automatically every five
|
|
198
|
-
seconds while visible. If updates fail, it keeps the last confirmed snapshot
|
|
201
|
+
The page shows the operation, source and target versions, and current traffic state. It refreshes every five seconds. If updates fail, it keeps the last confirmed snapshot
|
|
199
202
|
and marks it as out of date. Normal administrator changes remain paused.
|
|
200
203
|
|
|
201
204
|
Sign-in and status remain available while the API and authentication database
|
|
202
|
-
are reachable.
|
|
203
|
-
does not confirm every project's health. A disabled installation keeps traffic
|
|
205
|
+
are reachable. A disabled installation keeps traffic
|
|
204
206
|
paused after an upgrade or rollback.
|
|
205
207
|
|
|
206
208
|
If an operation fails or waits for DNS or Sandbox drain work, the CLI prints
|
|
@@ -242,7 +244,7 @@ Keep a coordinated recovery set for each installation:
|
|
|
242
244
|
|
|
243
245
|
Capture and label these items as one recovery point so PostgreSQL, provider data, identity, and encryption keys match. Backup and retention capabilities vary by provider and resource; choose and test the supported recovery process for each resource you use.
|
|
244
246
|
|
|
245
|
-
During a restore, keep platform and application traffic disabled before changing resources. Restore the matching PostgreSQL and provider data with their supported recovery tools, supply the original identity and keyring, and use the preserved runtime artifact. Then run `discover`, preview `repair` with `--plan`, and review every ownership decision and proposed resource change before applying it. Enable traffic only after the restored data and platform health have been verified.
|
|
247
|
+
During a restore, keep platform and application traffic disabled before changing resources. Restore the matching PostgreSQL and provider data with their supported recovery tools, supply the original identity and keyring, and use the preserved runtime artifact. Then run `discover`, preview `repair` with `--plan`, and review every ownership decision and proposed resource change before applying it. Enable traffic only after the restored data and platform health have been verified.
|
|
246
248
|
|
|
247
249
|
### Where local state lives
|
|
248
250
|
|
|
@@ -86,7 +86,9 @@ Use any PostgreSQL provider that accepts connections from your computer and Clou
|
|
|
86
86
|
| [PlanetScale Postgres](https://planetscale.com/docs/postgres/connecting) | Choose **Postgres**, not Vitess/MySQL. Open **Connect**, create role credentials, and use the direct primary connection on port `5432`, not PgBouncer on `6432`. |
|
|
87
87
|
| [Neon](https://neon.com/docs/get-started-with-neon/connect-neon) | Open **Connect**, select the database and owner role, and turn **connection pooling off**. |
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
Leave at least five PostgreSQL connections available for migrations and administration. When Void creates a Hyperdrive or manages it during repair or upgrade, it lowers the [origin connection limit](https://developers.cloudflare.com/hyperdrive/configuration/tune-connection-pool/) to leave at least five connections free after PostgreSQL’s reserved slots.
|
|
90
|
+
|
|
91
|
+
If several apps or platform installations share the server, budget for all their pools and for temporary bursts. Adjust their Hyperdrive limits yourself. For a separately managed Hyperdrive, Void warns if fewer than five connections remain.
|
|
90
92
|
|
|
91
93
|
Once installation claims the database, continue using that same database for resume and maintenance commands. If installation stops because it cannot use the database, for example because the database is not empty, set `VOID_PLATFORM_DATABASE_URL` to another database's URL before you resume. Uninstall never deletes external PostgreSQL.
|
|
92
94
|
|
|
@@ -38,15 +38,13 @@ void platform install
|
|
|
38
38
|
|
|
39
39
|
:::
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
Run `void platform install` and select your saved plan, or run the install command printed by `--plan`. Review the refreshed plan and confirm **Apply this plan?** to continue.
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
If you cancel setup, the installer saves your choices for next time, including paths to your authentication config and custom runtime. Plans contain no secrets.
|
|
44
44
|
|
|
45
45
|
## Choose login methods
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
Cloudflare Access protection is a separate choice from Access login. The
|
|
49
|
-
GitHub OAuth steps below apply when you select GitHub login.
|
|
47
|
+
Select the login methods you want to offer: GitHub, Google, generic OIDC, or Cloudflare Access. You can enable Cloudflare Access protection with any login method.
|
|
50
48
|
|
|
51
49
|
## Choose who can access apps
|
|
52
50
|
|
|
@@ -56,20 +54,14 @@ The installer asks **Who should be able to access deployed apps?**
|
|
|
56
54
|
- **Anyone — public apps** allows public visits.
|
|
57
55
|
- **Choose a different Access policy** selects separate company rules for apps. Without platform protection, this option is **Set up Cloudflare Access protection**.
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
opening application traffic; new projects inherit the selected default automatically.
|
|
61
|
-
If setup stops, use the printed resume command. Existing installations retain their
|
|
62
|
-
administrator settings during upgrades.
|
|
57
|
+
New projects inherit the access policy you select.
|
|
63
58
|
|
|
64
59
|
App protection uses the account hosting your platform. If platform login or
|
|
65
60
|
protection uses another account, select equivalent identity providers and policies
|
|
66
61
|
in the hosting account when prompted. Use the app domain’s apex or a workers.dev
|
|
67
62
|
hostname for the API so it stays outside the app wildcard.
|
|
68
63
|
|
|
69
|
-
|
|
70
|
-
that requires Access rules, it creates rules for each app and its verified custom
|
|
71
|
-
domains. Other subdomains keep their existing access rules. It leaves account-wide
|
|
72
|
-
Default-Deny enabled and does not bypass the platform API or proxy.
|
|
64
|
+
If your account uses Default-Deny, Void adds public Access rules scoped to each public app and its verified custom domains.
|
|
73
65
|
|
|
74
66
|
App rules need **Access: Apps and Policies Edit** and **Organizations, Identity
|
|
75
67
|
Providers, and Groups Read**. Void stores this management token encrypted for future
|
|
@@ -116,7 +108,7 @@ The setting covers the whole platform. To change it later, see [Change runtime l
|
|
|
116
108
|
|
|
117
109
|
## Choose a default storage location
|
|
118
110
|
|
|
119
|
-
|
|
111
|
+
If most of your team’s apps serve users in Asia Pacific, you can request that region for new R2 buckets when you install the platform.
|
|
120
112
|
|
|
121
113
|
```sh
|
|
122
114
|
void platform install --storage-location apac
|
|
@@ -124,7 +116,7 @@ void platform install --storage-location apac
|
|
|
124
116
|
|
|
125
117
|
Supported hints are `apac`, `eeur`, `enam`, `weur`, `wnam`, and `oc`. The default is automatic placement by Cloudflare. Projects can override the default with [`storage.locationHint`](/reference/config#storage-locationhint).
|
|
126
118
|
|
|
127
|
-
To
|
|
119
|
+
To request Western Europe for future buckets, run `void platform upgrade <id> --storage-location weur`. Omit the flag to keep the current setting or use `--storage-location automatic` to let Cloudflare choose. Existing buckets and the platform’s own asset bucket stay in place. If you need a data residency guarantee, a [location hint](https://developers.cloudflare.com/r2/reference/data-location/) alone is insufficient.
|
|
128
120
|
|
|
129
121
|
## Finish login configuration
|
|
130
122
|
|
|
@@ -34,7 +34,9 @@ void platform uninstall [id] --plan
|
|
|
34
34
|
void platform uninstall [id]
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Uninstall
|
|
37
|
+
Uninstall stops platform traffic. It removes Queues that no remaining platform Worker uses and lists what’s left in your account. By default, that includes Workers and their Queues, KV, R2, Hyperdrive, the dispatch namespace, AI Gateway, DNS records, routes, custom domains, and Access resources.
|
|
38
|
+
|
|
39
|
+
Your zones, adopted resources, and external PostgreSQL database stay in your account, even with `--purge-resources`. Use a new empty database if you install again. For email, `--purge-resources` removes only the rules that send mail to the platform.
|
|
38
40
|
|
|
39
41
|
When uninstall finishes, the record of what was kept stays at `~/.void/platforms/<account-id>/<installation-id>.json`. Without `--purge-data`, the encrypted credentials file `<installation-id>.recovery.enc` next to it is kept too. Delete both once you have finished the manual cleanup below.
|
|
40
42
|
|
|
@@ -57,7 +59,9 @@ void platform uninstall [id] --purge-resources
|
|
|
57
59
|
|
|
58
60
|
`--purge-resources` includes `--purge-data`. It also deletes the platform Workers, Queues, the application Workers left in the dispatch namespace, the R2 bucket and its objects, the AI Gateway, the platform DNS record, Worker routes and custom domains, and the Access applications and service tokens the installer created. The plan lists each resource in deletion order, and everything that stays. If Cloudflare shows that the AI Gateway was created after installation, for example because it was deleted and created again under the same name, it is kept and listed.
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
If you enabled [security audits](/guide/platform/administration/security-audits), even a standard uninstall removes the scanner Worker, its container applications and registry images, the scan copy namespace and its sandbox Worker, and leftover scan copies. The CLI lists scanner resources owned by another installation and leaves them in place.
|
|
63
|
+
|
|
64
|
+
Scan data stays under `security-scans/` in the platform R2 bucket. To remove it, empty the bucket or use `--purge-resources` to delete the bucket. Deleting an individual project also deletes its findings and scan data.
|
|
61
65
|
|
|
62
66
|
If the platform sends email, it first deletes the Email Routing rules in the sender domain's zone that send mail to the platform email gateway Worker, and resets such a catch-all rule to drop mail. It leaves Email Routing enabled and keeps the sender domain's MX, SPF, and DKIM records.
|
|
63
67
|
|
|
@@ -100,13 +104,3 @@ If no platform user exists yet, for example because first administrator setup di
|
|
|
100
104
|
not finish, nobody can run `zero-trust disable`. Uninstall then turns off project
|
|
101
105
|
Zero Trust and deletes its applications itself. Run it on the computer that installed
|
|
102
106
|
the platform. If the uninstall asks you to, update an older platform runtime first.
|
|
103
|
-
|
|
104
|
-
::: details Why some resources require manual cleanup
|
|
105
|
-
|
|
106
|
-
Resources that may have been shared or repurposed require manual review before deletion. Void verifies ownership, keeps those resources in place, and blocks platform traffic.
|
|
107
|
-
|
|
108
|
-
If removal is interrupted, rerun the command to continue. If a resource has changed ownership, resolve the reported conflict before retrying.
|
|
109
|
-
|
|
110
|
-
External PostgreSQL and its data always remain under your control.
|
|
111
|
-
|
|
112
|
-
:::
|
|
@@ -22,10 +22,7 @@ and remain independent of a member's login session, so collaborators and
|
|
|
22
22
|
project administrators deploy with their own account instead of minting a
|
|
23
23
|
durable owner credential.
|
|
24
24
|
|
|
25
|
-
The owner
|
|
26
|
-
own plan does not change the project's available usage, and acting through a
|
|
27
|
-
collaborator does not bypass an owner suspension. A project administrator is
|
|
28
|
-
not an installation administrator and receives no platform-wide access.
|
|
25
|
+
The owner’s plan, limits, and suspension status apply to everyone working on the project. Project administrators manage only that project.
|
|
29
26
|
|
|
30
27
|
## Invite a Registered User
|
|
31
28
|
|
package/docs/guide/queues.md
CHANGED
|
@@ -36,7 +36,7 @@ Files or directories starting with `_` are ignored.
|
|
|
36
36
|
|
|
37
37
|
## Sending messages
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Send messages through the property matching the queue name. TypeScript checks each message against the consumer’s `defineQueue<T>` type.
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
42
|
// routes/api/orders.ts
|
|
@@ -113,7 +113,7 @@ export default defineQueue<Message>(async (batch, env) => {
|
|
|
113
113
|
|
|
114
114
|
Export each option directly from the queue file as a whole number, such as `export const maxRetries = 5`. Computed values and re-exports aren't supported; repeat shared settings in each queue file.
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
If the email provider in this example can handle two batches at a time, export `maxConcurrency = 2`. Cloudflare can still deliver up to `maxBatchSize` messages in each batch. See [consumer concurrency](https://developers.cloudflare.com/queues/configuration/consumer-concurrency/).
|
|
117
117
|
|
|
118
118
|
Void-managed deployments require platform version 1.10.0 or later.
|
|
119
119
|
|
|
@@ -133,9 +133,7 @@ Existing deployments keep their queues and messages. To adopt the new naming, pa
|
|
|
133
133
|
|
|
134
134
|
## Local development
|
|
135
135
|
|
|
136
|
-
In native Void
|
|
137
|
-
|
|
138
|
-
You can also manually dispatch a batch by POSTing to the dev endpoint Void exposes:
|
|
136
|
+
In a native Void app, sending a message to `queues.emails` on the dev server runs your email consumer. To try a specific batch, send it to the local queue endpoint.
|
|
139
137
|
|
|
140
138
|
```
|
|
141
139
|
POST /__void/queue
|
|
@@ -143,13 +141,13 @@ Content-Type: application/json
|
|
|
143
141
|
{ "queue": "<queue-name>", "messages": [{ "id": "1", "timestamp": <unix_ms>, "body": <any>, "attempts": 1 }] }
|
|
144
142
|
```
|
|
145
143
|
|
|
146
|
-
|
|
144
|
+
Start the dev server and copy the `curl` command it prints. The command includes the local port and trigger token. This example sends an order confirmation to the `emails` consumer.
|
|
147
145
|
|
|
148
146
|
```bash
|
|
149
147
|
curl -X POST http://localhost:5173/__void/queue \
|
|
150
148
|
-H "Content-Type: application/json" \
|
|
151
149
|
-H "x-void-dev-trigger: <printed-token>" \
|
|
152
|
-
-d '{"queue":"
|
|
150
|
+
-d '{"queue":"emails","messages":[{"id":"1","timestamp":'"$(date +%s000)"',"body":{"to":"alice@example.com","subject":"Order confirmed"},"attempts":1}]}'
|
|
153
151
|
```
|
|
154
152
|
|
|
155
|
-
In supported meta-
|
|
153
|
+
In a supported meta-framework, use the dev endpoint to run the consumer with your framework’s bindings. A local send alone won’t run it. The manual trigger is available in the dev server only.
|
package/docs/guide/quickstart.md
CHANGED
|
@@ -5,7 +5,7 @@ outline: deep
|
|
|
5
5
|
|
|
6
6
|
# Quickstart
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Let’s build a small app with a `/api/hello` route, call it from the browser, and deploy it. If you already have a Vite app, you can [start there](#adding-to-an-existing-vite-app).
|
|
9
9
|
|
|
10
10
|
## Create an app
|
|
11
11
|
|
|
@@ -41,11 +41,11 @@ vpx void init
|
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
|
44
|
-
Choose your UI framework, a starter, and a deployment target.
|
|
44
|
+
Choose your UI framework, a starter, and a deployment target. For this example, choose D1 if you want a database you can run locally. You can connect your Cloudflare account now or skip deployment setup until the app is running.
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
By default, setup installs Vite+ for the project and keeps your package manager and lockfile. With pnpm, `pnpm create void my-app` can create the directory and configure build permissions in one step.
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
If `pnpm add` reports `ERR_PNPM_IGNORED_BUILDS`, continue with `pnpm void init`. It writes the required permissions to `pnpm-workspace.yaml`.
|
|
49
49
|
|
|
50
50
|
## Run locally
|
|
51
51
|
|
|
@@ -87,7 +87,7 @@ export const GET = defineHandler(() => {
|
|
|
87
87
|
});
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Open `http://localhost:5173/api/hello`. You should see `{"message":"Hello from Void"}`. Now call the same route from your client code.
|
|
91
91
|
|
|
92
92
|
```ts
|
|
93
93
|
import { fetch } from 'void/client';
|
|
@@ -95,7 +95,7 @@ import { fetch } from 'void/client';
|
|
|
95
95
|
const { message } = await fetch('/api/hello');
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
Hover over `message` in your editor. TypeScript knows it’s a string because that’s what the handler returns. Try renaming it to `greeting` in the handler. TypeScript will point you to the client code that still reads `message`.
|
|
99
99
|
|
|
100
100
|
Database starters also include `db/schema.ts`. Its Drizzle schema defines your tables and query types; Void runs a local database and provisions one when you deploy.
|
|
101
101
|
|
|
@@ -128,5 +128,3 @@ For a meta framework such as TanStack Start, React Router, or SvelteKit, follow
|
|
|
128
128
|
- [Database](./database.md): queries and migrations
|
|
129
129
|
- [Environment Variables](./env-vars.md): local values and production secrets
|
|
130
130
|
- [Coding Agents](../integrations/agents.md): use Void's bundled docs and skills
|
|
131
|
-
|
|
132
|
-
If a manual pnpm install reports blocked build scripts, run `pnpm approve-builds` for `esbuild`, `sharp`, and `workerd`. Set `better-sqlite3: false` in `pnpm-workspace.yaml`'s `allowBuilds`; Void uses its bundled binaries.
|
package/docs/guide/sandboxes.md
CHANGED
|
@@ -122,7 +122,7 @@ Custom images must include the helper matching Void's installed Sandbox SDK vers
|
|
|
122
122
|
|
|
123
123
|
```dockerfile
|
|
124
124
|
FROM node:26.12.1-trixie-slim
|
|
125
|
-
COPY --from=docker.io/cloudflare/sandbox:1.0.
|
|
125
|
+
COPY --from=docker.io/cloudflare/sandbox:1.0.3 /usr/local/bin/sandbox-shim /usr/local/bin/sandbox-shim
|
|
126
126
|
WORKDIR /workspace
|
|
127
127
|
CMD ["sleep", "infinity"]
|
|
128
128
|
```
|
|
@@ -5,13 +5,9 @@ outline: deep
|
|
|
5
5
|
|
|
6
6
|
# Install a Void Platform
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
On a Void platform, your team can run `void deploy` against the same Cloudflare account. You install the platform once, choose a sign-in method (GitHub, Google, OIDC, or Cloudflare Access), and share its URL. Each developer connects to that URL and deploys with their own login.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
The core platform supports GitHub, Google, generic OIDC, and Cloudflare Access login, CLI deploys, D1, KV, R2, Queues, cron jobs, Workers AI, WebSockets, SSE, ISR, routing, logs, and rollback.
|
|
13
|
-
|
|
14
|
-
The core installation also includes managed Sandboxes and an email gateway. Configure a shared mail domain and zone to enable email, and add `--custom-domains` for [project custom domains](/guide/platform/installation/domains#project-custom-domains). A user dashboard and managed GitHub builds require a [custom platform build](/guide/platform-development).
|
|
10
|
+
If your apps need email, configure a shared mail domain and zone. If you’re deploying a single app to your own account, you can [deploy directly to Cloudflare](/integrations/cloudflare#deploy-to-your-own-cloudflare-account).
|
|
15
11
|
|
|
16
12
|
## Deployment features
|
|
17
13
|
|
|
@@ -23,6 +19,7 @@ Both targets use the same application APIs. A core platform adds shared access a
|
|
|
23
19
|
| Routing rules, WebSockets, queues, cron, and ISR | Supported | Supported |
|
|
24
20
|
| D1, KV, R2, and external SQL through Hyperdrive | Supported | Supported |
|
|
25
21
|
| Workers AI and provider requests | Your account and gateway | Installation gateway and proxy |
|
|
22
|
+
| Browser Run for `void/image` | Your account's binding | Platform account through the proxy; Quick Actions only, metered by plan |
|
|
26
23
|
| Runtime logs | Live Cloudflare tail | Retained platform logs |
|
|
27
24
|
| Application rollback | Worker versions | Retained platform deployments |
|
|
28
25
|
| Typed Durable State and native Durable Objects | Supported | Supported |
|
|
@@ -30,7 +27,7 @@ Both targets use the same application APIs. A core platform adds shared access a
|
|
|
30
27
|
| Security audits of each deploy | Not available | Enable with `--security-audits`; needs Workers Paid, Containers, and Workers AI access or credits |
|
|
31
28
|
| Custom application domains | Supported | Enable with `--custom-domains` |
|
|
32
29
|
| Generated GitHub deployment workflow | Supported | Use your CI with a scoped developer token |
|
|
33
|
-
| User dashboard and managed GitHub builds | Not required |
|
|
30
|
+
| User dashboard and managed GitHub builds | Not required | Requires a custom installation |
|
|
34
31
|
|
|
35
32
|
A team platform requires Workers for Platforms and the [documented infrastructure](/guide/platform/installation/domains#cloudflare-footprint). Features depend on the installation's configuration.
|
|
36
33
|
|
|
@@ -92,7 +92,9 @@ import { defineHandler } from 'void';
|
|
|
92
92
|
export const GET = defineHandler((c) => c.html(renderToStaticMarkup(<h1>Hello!</h1>)));
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
To use [Hono JSX](https://hono.dev/docs/guides/jsx) in one route, add `/** @jsxImportSource void/jsx */` at the top of the file. Your app's JSX settings still apply to other files.
|
|
96
|
+
|
|
97
|
+
To use Hono JSX project-wide in an app that doesn't use another JSX runtime, configure `vite.config.ts`:
|
|
96
98
|
|
|
97
99
|
```ts
|
|
98
100
|
// vite.config.ts
|
|
@@ -100,12 +102,12 @@ import { defineConfig } from 'vite-plus';
|
|
|
100
102
|
import { voidPlugin } from 'void';
|
|
101
103
|
|
|
102
104
|
export default defineConfig({
|
|
103
|
-
oxc: { jsx: { runtime: 'automatic', importSource: '
|
|
105
|
+
oxc: { jsx: { runtime: 'automatic', importSource: 'void/jsx' } },
|
|
104
106
|
plugins: [voidPlugin()],
|
|
105
107
|
});
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
`c.html()`
|
|
110
|
+
For TypeScript, set `"jsx": "react-jsx"` and `"jsxImportSource": "void/jsx"` in `compilerOptions`. No separate Hono dependency is needed. `c.html()` takes Hono JSX directly:
|
|
109
111
|
|
|
110
112
|
```tsx
|
|
111
113
|
// routes/hello.tsx → GET /hello
|
package/docs/guide/ssg.md
CHANGED
|
@@ -17,7 +17,7 @@ When `output` is `"static"`:
|
|
|
17
17
|
|
|
18
18
|
- Pages default to `prerender = true` and are written as HTML files to `dist/client/`.
|
|
19
19
|
- Use `export const prerender = false` in a page's `.server.ts` to opt out. That page will be server-rendered on request.
|
|
20
|
-
-
|
|
20
|
+
- For dynamic pages, export `getPrerenderPaths()` to choose which URLs to prerender.
|
|
21
21
|
- The build output is self-contained and works for direct Cloudflare deployment, self-hosting, or `void deploy`.
|
|
22
22
|
|
|
23
23
|
## Trailing slashes and directory indexes
|
|
@@ -11,16 +11,11 @@ Void infers types from your database schema, route handlers, and page loaders. W
|
|
|
11
11
|
|
|
12
12
|
<img src="./type-pipeline.svg" alt="Type pipeline: Drizzle schema flows to DB types, branching into route handlers (typed fetch), page loaders (component props), and page actions (useForm / action())" style="max-width: 720px; width: 100%;" />
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
2. **Route handlers:** return types and validator schemas become the generated `RouteMap`, which the [typed fetch](./typed-fetch) client consumes.
|
|
16
|
-
3. **Page loaders:** return types flow into page components as props via `InferProps`.
|
|
17
|
-
4. **Page actions:** validator schemas flow into `useForm` and `action()` for typed data, errors, and URL autocomplete.
|
|
18
|
-
|
|
19
|
-
All generated types live in `.void/` and update automatically when source files or schema change.
|
|
14
|
+
Your [Drizzle schema](./database.md#schema-definition) types your queries. Handler return types and validators type requests made with [typed fetch](./typed-fetch).
|
|
20
15
|
|
|
21
16
|
## Database → Handler → Client
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
Select the fields your handler returns:
|
|
24
19
|
|
|
25
20
|
```ts
|
|
26
21
|
// routes/api/users.ts
|
|
@@ -47,7 +42,7 @@ await fetch('/api/users', {
|
|
|
47
42
|
});
|
|
48
43
|
```
|
|
49
44
|
|
|
50
|
-
|
|
45
|
+
For endpoints that don't map to a table, use any [Standard Schema](./server-routing.md#manual-validators) library.
|
|
51
46
|
|
|
52
47
|
## Loader → Page Props
|
|
53
48
|
|
|
@@ -147,7 +142,7 @@ const url = routeUrl('/users/[id]', {
|
|
|
147
142
|
// /users/42?tab=activity#details
|
|
148
143
|
```
|
|
149
144
|
|
|
150
|
-
TypeScript checks the route
|
|
145
|
+
TypeScript checks the route, required parameter names, and the destination page's query schema. Patterns follow your filenames: `pages/users/[id].tsx`, `.vue`, or `.svelte` uses `/users/[id]`.
|
|
151
146
|
|
|
152
147
|
Parameters accept strings or numbers and are URL-encoded for you. Query values can be strings, numbers, booleans, or arrays. Arrays become repeated keys; `null` and `undefined` values are omitted.
|
|
153
148
|
|
|
@@ -241,6 +236,66 @@ import type { PageParams } from 'void/routes';
|
|
|
241
236
|
const { slug } = c.req.param() as PageParams<'/posts/[slug]'>;
|
|
242
237
|
```
|
|
243
238
|
|
|
239
|
+
### Page query
|
|
240
|
+
|
|
241
|
+
Suppose a payments page can show paid or pending invoices. Export its `query` schema to type links to the page, and pass the schema to the loader to validate incoming requests:
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
// pages/admin/payments.server.ts
|
|
245
|
+
import { defineHandler } from 'void';
|
|
246
|
+
import { z } from 'zod';
|
|
247
|
+
import { listPayments } from '../../lib/payments';
|
|
248
|
+
|
|
249
|
+
export const query = z.object({
|
|
250
|
+
status: z.enum(['paid', 'pending']),
|
|
251
|
+
page: z.coerce.number().default(1),
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
export const exposeQuery = true;
|
|
255
|
+
|
|
256
|
+
export const loader = defineHandler.withValidator({ query })(async (c, { query }) => {
|
|
257
|
+
return { payments: await listPayments(query) };
|
|
258
|
+
});
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Links to `/admin/payments` now require a `status`. TypeScript checks the query in `routeUrl()`, `router.visit()`, and `c.redirect()`, including misspelled keys in inline objects:
|
|
262
|
+
|
|
263
|
+
```ts
|
|
264
|
+
import { routeUrl } from 'void/routes';
|
|
265
|
+
|
|
266
|
+
routeUrl('/admin/payments', { query: { status: 'paid' } });
|
|
267
|
+
routeUrl('/admin/payments', { query: { statsu: 'paid' } }); // Type error: no such key
|
|
268
|
+
routeUrl('/admin/payments', { query: { status: 'void' } }); // Type error: not in the schema
|
|
269
|
+
routeUrl('/admin/payments'); // Type error: `status` is required
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
If the destination can be one of several routes with different query schemas, narrow the path before passing a query to `routeUrl()`.
|
|
273
|
+
|
|
274
|
+
A URL such as `?tag=books` gives the validator a string; `?tag=books&tag=music` gives it an array. For filters that allow one or more tags, accept both forms in the schema. An array-only query field requires at least two values in a link.
|
|
275
|
+
|
|
276
|
+
With `exposeQuery = true`, the page and its layouts can read the validated values with `usePageQuery()`. Pass the page pattern to get its output type. Pass the values to islands as props.
|
|
277
|
+
|
|
278
|
+
```ts
|
|
279
|
+
import { usePageQuery, useRouter } from '@void/react'; // @void/vue, @void/svelte, @void/solid
|
|
280
|
+
|
|
281
|
+
const router = useRouter();
|
|
282
|
+
const query = usePageQuery<'/admin/payments'>();
|
|
283
|
+
// { status: 'paid' | 'pending'; page: number }
|
|
284
|
+
|
|
285
|
+
function showPending() {
|
|
286
|
+
return router.visit({
|
|
287
|
+
pathname: '/admin/payments',
|
|
288
|
+
query: { ...query, status: 'pending', page: 1 },
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
For `?status=paid`, `query.page` is the number `1` from the schema. Without `exposeQuery`, or if the schema doesn't return a plain object, the page sees the raw URL values instead.
|
|
294
|
+
|
|
295
|
+
On a prerendered page, `usePageQuery()` reflects the build: an empty query or the exposed schema defaults. Read `useRouter().query` if you need the visitor’s current URL.
|
|
296
|
+
|
|
297
|
+
Pages without a query schema accept any `RouteQuery`. HTTP handlers don't participate in page query typing. For `.dev` and `.prod` page variants, `void prepare` checks links against both schemas; a dev server or production build checks its own variant.
|
|
298
|
+
|
|
244
299
|
### Prerender paths
|
|
245
300
|
|
|
246
301
|
Annotate `getPrerenderPaths()` with `PageParams` to check that every path includes the page's required parameters:
|
|
@@ -335,7 +390,16 @@ import { routeUrl } from 'void/routes';
|
|
|
335
390
|
|
|
336
391
|
:::
|
|
337
392
|
|
|
338
|
-
|
|
393
|
+
A link can include a query or fragment, even when you build its path with `routeUrl()`. For example, you can build a typed link to the activity tab on a user’s profile.
|
|
394
|
+
|
|
395
|
+
```ts
|
|
396
|
+
import { routeUrl, type RouteUrl } from 'void/routes';
|
|
397
|
+
|
|
398
|
+
const userId = 42;
|
|
399
|
+
const activityUrl: RouteUrl = `${routeUrl('/users/[id]', { params: { id: userId } })}?tab=activity`;
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Use an absolute path within the app, such as `/settings`. On the current page, `?page=2` and `#comments` also work. For a static path like `/café menu`, you can use the text itself or its uppercase percent encoding (`/caf%C3%A9%20menu`). External links accept `http://`, `https://`, `mailto:`, and `tel:`.
|
|
339
403
|
|
|
340
404
|
With `routing.typedRoutes`, URLs handled only by root dynamic routes (`/[slug]`, `/[...slug]`, or `/[...]`) require `routeUrl()`, for example `routeUrl('/[...slug]', { params: { slug: 'dashboard' } })`. Other declared routes still accept checked URL strings. For a custom 404 page, use [`_not-found`](./pages-routing/errors.md#missing-pages).
|
|
341
405
|
|
package/docs/guide/websockets.md
CHANGED
|
@@ -158,11 +158,11 @@ When Void auth is enabled, every WebSocket hook receives the current user as `ct
|
|
|
158
158
|
|
|
159
159
|
Connections from another origin are anonymous unless that origin is in your auth `trustedOrigins`. If you read your own cookies from `ctx.request` in `onBeforeConnect`, check its `Origin` header yourself.
|
|
160
160
|
|
|
161
|
-
`ctx.user`
|
|
161
|
+
`ctx.user` identifies the user who opened the connection. If someone signs out or their role changes while the socket is open, that value still describes their original session. Check your current records in `onMessage` when a ban or role change matters. To disconnect the user, call `ctx.connection.close()` in a room or `ctx.socket.close()` in `defineWebSocket()`.
|
|
162
162
|
|
|
163
163
|
## Server-side actions
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Suppose a user signs out while they have a WebSocket open in another tab. You can close that connection as soon as you revoke the session. Give the room a `revokeSession` action and save the authenticated session ID when each connection opens.
|
|
166
166
|
|
|
167
167
|
```ts
|
|
168
168
|
// routes/relay/[accountId].ws.ts
|
|
@@ -200,7 +200,7 @@ export default defineRoom({
|
|
|
200
200
|
});
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
Now call `revokeSession` from the code that revokes the user’s session. Use `getRoom()` from `void/ws/server` in a route, auth hook, queue consumer, or cron job.
|
|
204
204
|
|
|
205
205
|
```ts
|
|
206
206
|
import { getRoom } from 'void/ws/server';
|
|
@@ -210,9 +210,9 @@ const room = getRoom('/relay/[accountId]', { params: { accountId } });
|
|
|
210
210
|
const { closed } = await room.actions.revokeSession(session.id, 4001);
|
|
211
211
|
```
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
The account ID selects the same room the browser joined with `connect()`, including any custom room `key`. The result tells you how many of that session’s connections were closed.
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
Use the session ID from `getSession()` or your own records at both ends. A client can choose any ID in a URL or message. Trusting that ID could disconnect someone else.
|
|
216
216
|
|
|
217
217
|
- Annotate each action parameter. Arguments and results are typed from the definition, and an unannotated parameter is `never`.
|
|
218
218
|
- Actions receive `ctx.id`, `ctx.params`, `ctx.env`, `ctx.storage` and `ctx.room`. There is no `ctx.request` or `ctx.user`: other server code is the caller, so authorize the decision where you make it.
|
|
@@ -221,8 +221,6 @@ Match connections on server-verified state. A session id read from the URL, a qu
|
|
|
221
221
|
- An unknown action name or a handler error rejects the call. An unknown route, a `defineWebSocket()` route or a missing param throws before any Durable Object is contacted.
|
|
222
222
|
- Do not call an action from the same room's own hooks. Use `ctx.room` there; a call from inside the room waits on the room itself.
|
|
223
223
|
|
|
224
|
-
Actions are not an endpoint. They run over Durable Object RPC from your Worker, so a browser request or a WebSocket message cannot call one.
|
|
225
|
-
|
|
226
224
|
`getRoom()` reads the current runtime env, so it works in any handler Void runs. Outside one, pass the bindings object you already hold:
|
|
227
225
|
|
|
228
226
|
```ts
|