void 1.12.0 → 1.12.2

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 (123) hide show
  1. package/dist/{account-cmd-D_0qJ9fx.mjs → account-cmd-CdJQba_Q.mjs} +4 -4
  2. package/dist/{application-analysis-Cx2S63z5.mjs → application-analysis-DVeN8yoi.mjs} +1 -1
  3. package/dist/{application-routing-BAXpnawu.mjs → application-routing-KKw4Y84h.mjs} +1 -1
  4. package/dist/{auth-Boz0lrb3.mjs → auth-A7cZ8aXA.mjs} +1 -1
  5. package/dist/{auth-DlLDymuc.mjs → auth-CqwJwItO.mjs} +1 -1
  6. package/dist/{auth-link-C97r9p2N.mjs → auth-link-D9MWA_dj.mjs} +4 -4
  7. package/dist/{auth-router-BmzEgzYx.mjs → auth-router-FskgTU3B.mjs} +1 -1
  8. package/dist/{build-cmd-BaFsyZrz.mjs → build-cmd-B7OJ0U5R.mjs} +2 -2
  9. package/dist/build-id-4IV4hC1-.mjs +13 -0
  10. package/dist/{cache-xO711ATQ.mjs → cache-wSpi3aeM.mjs} +2 -2
  11. package/dist/{cancel-deploy-Di11ynsr.mjs → cancel-deploy-DMWzkAlb.mjs} +2 -2
  12. package/dist/{cf-access-FaIm95jA.mjs → cf-access-DHklo7Rg.mjs} +33 -19
  13. package/dist/{cf-build-output-Ca201_n1.mjs → cf-build-output-Cso7Vh-t.mjs} +4 -2
  14. package/dist/cf-build-output-Wpk_e5CI.mjs +1 -0
  15. package/dist/cli/cli.mjs +1 -1
  16. package/dist/cli/cloudflare-operation-process.mjs +1 -1
  17. package/dist/cli/db-execute-process.d.mts +2 -0
  18. package/dist/cli/db-execute-process.mjs +57 -0
  19. package/dist/{cli-main-DlW6lB8s.mjs → cli-main-DaLrQfPS.mjs} +37 -344
  20. package/dist/{client-ImIe7Mjq.mjs → client-DE2m2ldh.mjs} +4 -4
  21. package/dist/{client-DkYzDEC0.mjs → client-eLZwqkPH.mjs} +1 -1
  22. package/dist/{cloudflare-operations-BF0PSErW.mjs → cloudflare-operations-BIRQkYwL.mjs} +14 -8
  23. package/dist/cloudflare-operations-ByjFGats.mjs +1 -0
  24. package/dist/{connect-DDRQGfFE.mjs → connect-WG4TcR_d.mjs} +4 -4
  25. package/dist/{create-project-CY7sP8sI.mjs → create-project-8FdN6D2i.mjs} +2 -2
  26. package/dist/{create-project-Dro3K-az.mjs → create-project-CbuDH5Hv.mjs} +1 -1
  27. package/dist/{db-DmlaWVBu.mjs → db-BSuWV1PI.mjs} +1348 -69
  28. package/dist/db-args-BvMwAber.mjs +1 -0
  29. package/dist/db-args-CiQVg8SJ.mjs +321 -0
  30. package/dist/{delete-Uuq9ch6o.mjs → delete-WtLEfap2.mjs} +2 -2
  31. package/dist/{deploy-B9E7_rHC.mjs → deploy-DtJeunLF.mjs} +14 -14
  32. package/dist/{deploy-BB3rsZbP.mjs → deploy-GT4CW5fs.mjs} +1 -1
  33. package/dist/{deploy-managed-static-IKZyuc1W.mjs → deploy-managed-static-BWBsxOww.mjs} +5 -5
  34. package/dist/{deploy-security-notice-C3LalelR.mjs → deploy-security-notice-IRGy6Edf.mjs} +2 -2
  35. package/dist/deploy.mjs +4 -4
  36. package/dist/{domain-B_xY1yZ5.mjs → domain-mweyYXSw.mjs} +3 -3
  37. package/dist/{email-BIC15L7a.mjs → email-DoDqRH6i.mjs} +5 -5
  38. package/dist/{email-cloudflare-C447nOqq.mjs → email-cloudflare-DeYH3Ke7.mjs} +2 -2
  39. package/dist/{env-DJPZYHT5.mjs → env-DaAoYR2-.mjs} +3 -3
  40. package/dist/{gen-DiTZlDx8.mjs → gen-aOtHhZLD.mjs} +1 -1
  41. package/dist/gen-vhBDHs3q.mjs +1 -0
  42. package/dist/{github-cmd-DPmby8x-.mjs → github-cmd-BR19Ffdz.mjs} +2 -2
  43. package/dist/{help-9wfMyXHb.mjs → help-DvClCzqL.mjs} +9 -1
  44. package/dist/help-fKPzcTJv.mjs +1 -0
  45. package/dist/index.mjs +16 -206
  46. package/dist/{info-BWEWaOBo.mjs → info-P6MBiVJi.mjs} +2 -2
  47. package/dist/{init-BuTPVLPO.mjs → init-B2VZ2Hut.mjs} +63 -18
  48. package/dist/installed-packages-tfmYd-cC.mjs +198 -0
  49. package/dist/{link-BiesPyT4.mjs → link-Dyz9IGcM.mjs} +3 -3
  50. package/dist/{list-CkonftPQ.mjs → list-VGYBMjmx.mjs} +4 -4
  51. package/dist/login-BbSQTZ6d.mjs +1 -0
  52. package/dist/{login-BSOSah1j.mjs → login-jUBgfvzk.mjs} +3 -3
  53. package/dist/{logs-HOBUnroa.mjs → logs-kS1wuR4b.mjs} +3 -3
  54. package/dist/module-references-DWQmO6TW.mjs +27 -0
  55. package/dist/{mysql-sql-CB52k8tQ.mjs → mysql-lock-D8xtnI-D.mjs} +1 -118
  56. package/dist/mysql-sql-BIE7bc4Z.mjs +124 -0
  57. package/dist/{operator-ai-logging-ZDqqhnIq.mjs → operator-ai-logging-DD0n6zc2.mjs} +3 -3
  58. package/dist/{operator-args-DCkWbgT-.mjs → operator-args-nvetCWuz.mjs} +1 -1
  59. package/dist/{operator-auth-BjoPLgja.mjs → operator-auth-DMvn-y9X.mjs} +1 -1
  60. package/dist/{operator-client-DzebIntv.mjs → operator-client-dFNnXfyB.mjs} +4 -3
  61. package/dist/operator-cmd-jnjzuJKX.mjs +1 -0
  62. package/dist/{operator-cmd-AZoeI9Pl.mjs → operator-cmd-wML5HNfS.mjs} +13 -9
  63. package/dist/{operator-security-Bo26FP01.mjs → operator-security-D5MToU0p.mjs} +1 -1
  64. package/dist/pages/client.mjs +77 -9
  65. package/dist/pages/index.d.mts +6 -0
  66. package/dist/pages/index.mjs +276 -6
  67. package/dist/pages/protocol.mjs +1 -1
  68. package/dist/platform-args-CMwMoiLp.mjs +1 -0
  69. package/dist/{platform-args-lwCyQ6Xy.mjs → platform-args-CvZSuhYS.mjs} +1 -1
  70. package/dist/{platform-auth-config-DLRMPw1G.mjs → platform-auth-config-Bv3oQ2gE.mjs} +7 -7
  71. package/dist/{platform-auth-protection-HSmLmD3d.mjs → platform-auth-protection-OqzfhXwx.mjs} +5 -5
  72. package/dist/{platform-auth-recovery-BXPhTlKa.mjs → platform-auth-recovery-rmIYjXST.mjs} +4 -4
  73. package/dist/{platform-cmd-CqRjxFEU.mjs → platform-cmd-B3rO4RhU.mjs} +1 -1
  74. package/dist/{platform-cmd-DJ-fOYhL.mjs → platform-cmd-D_4z2Ijv.mjs} +6 -6
  75. package/dist/{platform-domain-CRsRJOws.mjs → platform-domain-CUq9odbd.mjs} +2 -2
  76. package/dist/{platform-lifecycle-bx_kpqo7.mjs → platform-lifecycle-DOSYo0UI.mjs} +1 -1
  77. package/dist/{platform-lifecycle-fau3VKv6.mjs → platform-lifecycle-DuoVruij.mjs} +138 -43
  78. package/dist/{platform-management-BRGhD-oF.mjs → platform-management-D_gt3qLb.mjs} +1 -1
  79. package/dist/{platform-management-CnKBdDx5.mjs → platform-management-MmO9IubR.mjs} +4 -4
  80. package/dist/{platform-plans-config-2C3_5EDs.mjs → platform-plans-config-DiydtNKY.mjs} +3 -3
  81. package/dist/{platform-recovery-poxgOOAY.mjs → platform-recovery-P_FVslfd.mjs} +2 -2
  82. package/dist/{platform-setup-DYylapHD.mjs → platform-setup-Lph9i-rh.mjs} +1 -1
  83. package/dist/{plugin-inference-7O11_E4H.mjs → plugin-inference-COlq96WJ.mjs} +2 -27
  84. package/dist/prepare-DcwigRUS.mjs +1 -0
  85. package/dist/{prepare-DWjn1Lzd.mjs → prepare-WvijE289.mjs} +1 -1
  86. package/dist/{prepare-BbvlKreR.mjs → prepare-co1o1FFd.mjs} +1 -1
  87. package/dist/{project-cmd-DyUEFi2b.mjs → project-cmd-BWJTplpc.mjs} +18 -18
  88. package/dist/{project-security-DZEQgnsS.mjs → project-security-BV1xfj1K.mjs} +1 -1
  89. package/dist/{project-security--tYGFPGo.mjs → project-security-CY_aahvW.mjs} +2 -2
  90. package/dist/{project-team-BszTHgzC.mjs → project-team-BlIFXlmT.mjs} +2 -2
  91. package/dist/{project-token-DBDy4NdV.mjs → project-token-CMsB7I1-.mjs} +2 -2
  92. package/dist/{project-zero-trust-D9sUouij.mjs → project-zero-trust-BI6pdpx4.mjs} +2 -2
  93. package/dist/{protocol-CE3wP-H1.mjs → protocol-4rEnumif.mjs} +10 -3
  94. package/dist/{redirect-DD825Stf.mjs → redirect-Dyvuil0Q.mjs} +5 -2
  95. package/dist/{requests-CBokjiOi.mjs → requests-CfmJxNYg.mjs} +2 -2
  96. package/dist/{rollback-CEeHNFUn.mjs → rollback-DL5HuAsM.mjs} +3 -3
  97. package/dist/{runner-mysql-3XDKrn-g.mjs → runner-mysql-D549vGGm.mjs} +2 -1
  98. package/dist/{runner-mysql-r688x6Y9.mjs → runner-mysql-DOjbj-N1.mjs} +1 -1
  99. package/dist/runtime/db/migrations/mysql-handler.mjs +2 -1
  100. package/dist/runtime/routing/index.mjs +2 -2
  101. package/dist/{secret-Deqo3n_N.mjs → secret-C-WBaUSS.mjs} +3 -3
  102. package/docs/guide/jobs.md +1 -1
  103. package/docs/guide/pages-routing/actions-and-forms.md +36 -15
  104. package/docs/guide/pages-routing/errors.md +3 -1
  105. package/docs/guide/pages-routing/overview.md +20 -0
  106. package/docs/guide/platform/administration/zero-trust.md +1 -1
  107. package/docs/guide/platform/installation/maintenance.md +5 -3
  108. package/docs/guide/queues.md +1 -1
  109. package/docs/integrations/frameworks/sveltekit.md +1 -1
  110. package/docs/reference/api/pages.md +4 -0
  111. package/docs/reference/cli/database.md +42 -6
  112. package/docs/reference/cli/platform-security.md +1 -1
  113. package/docs/reference/cli/platform-zero-trust.md +4 -3
  114. package/docs/reference/cli/setup.md +4 -0
  115. package/package.json +7 -7
  116. package/dist/cf-build-output-Dy7N0hQN.mjs +0 -1
  117. package/dist/cloudflare-operations-dpRD-2Px.mjs +0 -1
  118. package/dist/gen-CQDiPi8m.mjs +0 -1
  119. package/dist/help-Dy3w4rPq.mjs +0 -1
  120. package/dist/login-DWCZeCX9.mjs +0 -1
  121. package/dist/operator-cmd-DEnHFmJF.mjs +0 -1
  122. package/dist/platform-args-DNbNZ_RR.mjs +0 -1
  123. package/dist/prepare-BmG2E6TI.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  import { n as readDeploymentPlatform } from "./project-dh9431bN.mjs";
2
2
  import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
3
- import { c as getToken, s as getSiteDomain } from "./auth-DlLDymuc.mjs";
4
- import { r as PlatformClient } from "./client-ImIe7Mjq.mjs";
3
+ import { c as getToken, s as getSiteDomain } from "./auth-CqwJwItO.mjs";
4
+ import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
5
5
  import { S as tablePrefix, c as formatCount, f as formatUrl, h as import_picocolors, o as dim } from "./output-BZLnu0z8.mjs";
6
6
  // src/cli/projects.ts
7
7
  async function runProjectsCommand(root) {
@@ -37,83 +37,83 @@ async function runProjectsCommand(root) {
37
37
  async function runProjectCommand(root, args) {
38
38
  const cloudflare = readDeploymentPlatform(root) === "cloudflare";
39
39
  if (args.subcommand === "status") {
40
- const { runListCommand } = await import("./list-CkonftPQ.mjs");
40
+ const { runListCommand } = await import("./list-VGYBMjmx.mjs");
41
41
  return runListCommand(root, args.name || void 0);
42
42
  }
43
43
  if (args.subcommand === "link") {
44
44
  if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by cloudflare.name in void.config.ts and do not need linking.");
45
- const { runLink } = await import("./link-BiesPyT4.mjs");
45
+ const { runLink } = await import("./link-Dyz9IGcM.mjs");
46
46
  return runLink(root, args.name || void 0);
47
47
  }
48
48
  if (args.subcommand === "list") {
49
49
  if (cloudflare) {
50
- const { runListCommand } = await import("./list-CkonftPQ.mjs");
50
+ const { runListCommand } = await import("./list-VGYBMjmx.mjs");
51
51
  return runListCommand(root);
52
52
  }
53
53
  return runProjectsCommand(root);
54
54
  }
55
55
  if (args.subcommand === "token") {
56
56
  if (cloudflare) throw new Error("project: CI deploy credentials are available only for Void platform projects.");
57
- const { runProjectTokenCommand } = await import("./project-token-DBDy4NdV.mjs");
57
+ const { runProjectTokenCommand } = await import("./project-token-CMsB7I1-.mjs");
58
58
  return runProjectTokenCommand(root, args);
59
59
  }
60
60
  if (args.subcommand === "team") {
61
61
  if (args.action === "") {
62
- const { printHelpPage } = await import("./help-Dy3w4rPq.mjs");
62
+ const { printHelpPage } = await import("./help-fKPzcTJv.mjs");
63
63
  printHelpPage(["project", "team"]);
64
64
  return;
65
65
  }
66
66
  const accountInvitationAction = args.action === "pending" || args.action === "accept" || args.action === "decline";
67
67
  if (cloudflare && !accountInvitationAction) throw new Error("project: Teams are available only for projects hosted on a Void platform, not direct Cloudflare deployments.");
68
- const { runProjectTeamCommand } = await import("./project-team-BszTHgzC.mjs");
68
+ const { runProjectTeamCommand } = await import("./project-team-BlIFXlmT.mjs");
69
69
  return runProjectTeamCommand(root, args);
70
70
  }
71
71
  if (args.subcommand === "zero-trust") {
72
72
  if (cloudflare) throw new Error("project: Zero Trust overrides are available only for projects hosted on a Void platform.");
73
73
  if (args.action === "") {
74
- const { printHelpPage } = await import("./help-Dy3w4rPq.mjs");
74
+ const { printHelpPage } = await import("./help-fKPzcTJv.mjs");
75
75
  printHelpPage(["project", "zero-trust"]);
76
76
  return;
77
77
  }
78
- const { runProjectZeroTrustCommand } = await import("./project-zero-trust-D9sUouij.mjs");
78
+ const { runProjectZeroTrustCommand } = await import("./project-zero-trust-BI6pdpx4.mjs");
79
79
  return runProjectZeroTrustCommand(root, args);
80
80
  }
81
81
  if (args.subcommand === "security") {
82
82
  if (cloudflare) throw new Error("project: Security audits are available only for projects hosted on a Void platform.");
83
83
  if (args.action === "") {
84
- const { printHelpPage } = await import("./help-Dy3w4rPq.mjs");
84
+ const { printHelpPage } = await import("./help-fKPzcTJv.mjs");
85
85
  printHelpPage(["project", "security"]);
86
86
  return;
87
87
  }
88
- const { runProjectSecurityCommand } = await import("./project-security-DZEQgnsS.mjs");
88
+ const { runProjectSecurityCommand } = await import("./project-security-BV1xfj1K.mjs");
89
89
  return runProjectSecurityCommand(root, args);
90
90
  }
91
91
  if (args.subcommand === "logs") {
92
- const { runLogsCommand } = await import("./logs-HOBUnroa.mjs");
92
+ const { runLogsCommand } = await import("./logs-kS1wuR4b.mjs");
93
93
  return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
94
94
  }
95
95
  if (args.subcommand === "requests") {
96
96
  if (cloudflare) throw new Error("project: Historical request analytics require the Void platform. Use `void project logs` for a live Cloudflare tail.");
97
- const { runRequestsCommand } = await import("./requests-CBokjiOi.mjs");
97
+ const { runRequestsCommand } = await import("./requests-CfmJxNYg.mjs");
98
98
  return runRequestsCommand(root, args.range, args.status || void 0);
99
99
  }
100
100
  if (args.subcommand === "rollback") {
101
- const { runRollbackCommand } = await import("./rollback-CEeHNFUn.mjs");
101
+ const { runRollbackCommand } = await import("./rollback-DL5HuAsM.mjs");
102
102
  return runRollbackCommand(root, args.deployId || void 0, args.platform);
103
103
  }
104
104
  if (args.subcommand === "cancel") {
105
105
  if (cloudflare) throw new Error("project: Direct Cloudflare deploys activate only after readiness succeeds, so there is no remote build to cancel.");
106
- const { runCancelDeployCommand } = await import("./cancel-deploy-Di11ynsr.mjs");
106
+ const { runCancelDeployCommand } = await import("./cancel-deploy-DMWzkAlb.mjs");
107
107
  return runCancelDeployCommand(root, args.deployId || void 0);
108
108
  }
109
109
  if (args.subcommand === "delete") {
110
110
  if (cloudflare) throw new Error("project: Refusing to delete Cloudflare resources through this command. Direct deployments are additive and existing resources may be shared.");
111
- const { runDeleteCommand } = await import("./delete-Uuq9ch6o.mjs");
111
+ const { runDeleteCommand } = await import("./delete-WtLEfap2.mjs");
112
112
  return runDeleteCommand(root, args.name || void 0, { force: args.force });
113
113
  }
114
114
  if (args.subcommand === "purge-cache") {
115
115
  if (cloudflare) throw new Error("project: `void project purge-cache` is available only for projects hosted on a Void platform. For a direct Cloudflare deploy, redeploy or purge the configured ISR KV namespace.");
116
- const { runPurgeCacheCommand } = await import("./cache-xO711ATQ.mjs");
116
+ const { runPurgeCacheCommand } = await import("./cache-wSpi3aeM.mjs");
117
117
  return runPurgeCacheCommand(root, args.projectSlug || void 0);
118
118
  }
119
119
  }
@@ -1 +1 @@
1
- export { m as runProjectSecurityCommand } from "./project-security--tYGFPGo.mjs";
1
+ export { m as runProjectSecurityCommand } from "./project-security-CY_aahvW.mjs";
@@ -1,8 +1,8 @@
1
1
  import { t as __commonJSMin } from "./rolldown-runtime-uD8oG6U2.mjs";
2
2
  import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
3
3
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
4
- import { c as getToken, u as openBrowser } from "./auth-DlLDymuc.mjs";
5
- import { n as PlatformApiError, r as PlatformClient } from "./client-ImIe7Mjq.mjs";
4
+ import { c as getToken, u as openBrowser } from "./auth-CqwJwItO.mjs";
5
+ import { n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
6
6
  import { n as cleanBlock, r as cleanLine } from "./output-BZLnu0z8.mjs";
7
7
  import { a as join } from "./dist-DMYe8CZJ.mjs";
8
8
  import { o as uploadAssetsToR2, t as DirectR2PutError } from "./direct-r2-upload-DFXLWfXV.mjs";
@@ -1,6 +1,6 @@
1
1
  import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken, i as getAccountCredential } from "./auth-DlLDymuc.mjs";
3
- import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-ImIe7Mjq.mjs";
2
+ import { c as getToken, i as getAccountCredential } from "./auth-CqwJwItO.mjs";
3
+ import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
4
  import { b as sanitizeTerminalText, c as formatCount, f as formatUrl, g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
5
  import { r as readProjectConfig } from "./project-dh9431bN.mjs";
6
6
  import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-8WZ3iVmr.mjs";
@@ -1,6 +1,6 @@
1
1
  import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-DlLDymuc.mjs";
3
- import { r as PlatformClient } from "./client-ImIe7Mjq.mjs";
2
+ import { c as getToken } from "./auth-CqwJwItO.mjs";
3
+ import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
4
  import { S as tablePrefix, o as dim, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
5
  import { r as readProjectConfig } from "./project-dh9431bN.mjs";
6
6
  import { r as requireProjectBySlug } from "./resolve-project-8WZ3iVmr.mjs";
@@ -1,8 +1,8 @@
1
1
  import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
2
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
3
- import { n as PlatformApiError } from "./client-ImIe7Mjq.mjs";
3
+ import { n as PlatformApiError } from "./client-DE2m2ldh.mjs";
4
4
  import { b as sanitizeTerminalText, g as note, r as cleanLine, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
- import { a as day, d as publicRequestLines, p as resolveTarget, t as askYesNo, u as isInteractive } from "./project-security--tYGFPGo.mjs";
5
+ import { a as day, d as publicRequestLines, p as resolveTarget, t as askYesNo, u as isInteractive } from "./project-security-CY_aahvW.mjs";
6
6
  import { t as OPEN_PUBLIC_REQUEST_STATES } from "./security-api-types-CU7zQtr_.mjs";
7
7
  // src/cli/project-zero-trust.ts
8
8
  function isOpenRequest(request) {
@@ -1,9 +1,10 @@
1
1
  import { a as executeComposedHandler, i as separateDeferred, n as DEFERRED, o as getHandlerComposition, t as ValidationError } from "./validation-error-CtcAvyI7.mjs";
2
2
  import { n as isConvertedResponse } from "./response-CyXsGfOy.mjs";
3
3
  import { a as hasActionKey, c as searchWithoutActionKey, t as decodePagePath } from "./url-DBQluotE.mjs";
4
+ import { n as pagesBuildId } from "./build-id-4IV4hC1-.mjs";
4
5
  import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString, t as absolutizeHead } from "./head-BwQ5kgqt.mjs";
5
6
  import { a as serializePageData, o as escapeScriptJson } from "./serialize-BmB4BfKu.mjs";
6
- import { PAGES_PROTOCOL_VERSION } from "@void/edge";
7
+ import { PAGES_BUILD_HEADER, PAGES_PROTOCOL_VERSION, buildHeaders, isStaleBuild } from "@void/edge";
7
8
  // src/pages/not-found-context.ts
8
9
  const loaderNotFound = /* @__PURE__ */ new WeakSet();
9
10
  const loaderBoundaries = /* @__PURE__ */ new WeakSet();
@@ -52,7 +53,8 @@ function isPagesRequest(c) {
52
53
  return c.req.header("x-voidpages") === "true";
53
54
  }
54
55
  function needsPageReload(c) {
55
- return isPagesRequest(c) && c.req.header("X-VoidPages-Version") !== PAGES_PROTOCOL_VERSION;
56
+ if (!isPagesRequest(c)) return false;
57
+ return c.req.header("X-VoidPages-Version") !== PAGES_PROTOCOL_VERSION || c.req.method === "GET" && isStaleBuild(pagesBuildId(), c.req.header(PAGES_BUILD_HEADER));
56
58
  }
57
59
  /** Old clients reload a successful non-Pages response; form errors stay readable. */
58
60
  function legacyPageResponse(c, errors = null) {
@@ -60,7 +62,8 @@ function legacyPageResponse(c, errors = null) {
60
62
  const headers = pageResponseHeaders(c, {
61
63
  "Content-Type": errors ? "application/json" : "text/plain; charset=utf-8",
62
64
  "Cache-Control": "no-store",
63
- Vary: "X-VoidPages, X-VoidPages-Version"
65
+ Vary: "X-VoidPages, X-VoidPages-Version",
66
+ ...buildHeaders(pagesBuildId())
64
67
  });
65
68
  headers.delete("X-VoidPages");
66
69
  return new Response(errors ? JSON.stringify({ errors }) : null, {
@@ -178,6 +181,7 @@ function pageJsonResponse(c, pageObj) {
178
181
  headers: pageResponseHeaders(c, {
179
182
  "X-VoidPages": "true",
180
183
  "X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
184
+ ...buildHeaders(pagesBuildId()),
181
185
  "Content-Type": "application/json",
182
186
  Vary: "X-VoidPages, X-VoidPages-Version",
183
187
  ...POWERED_BY
@@ -383,6 +387,7 @@ function renderedResponse(c, result, contentType, assetTags) {
383
387
  status: c.newResponse(null).status,
384
388
  headers: adjustDevCssCsp(pageResponseHeaders(c, {
385
389
  "content-type": contentType,
390
+ ...buildHeaders(pagesBuildId()),
386
391
  ...POWERED_BY
387
392
  }), assetTags?.devCssNonce)
388
393
  });
@@ -484,6 +489,8 @@ async function runPageGet(handler, headFn, c, componentId, renderFn, getAssetTag
484
489
  if (!hasDeferred) return pageJsonResponse(c, pageObj);
485
490
  c.header("X-VoidPages", "true");
486
491
  c.header("X-VoidPages-Version", PAGES_PROTOCOL_VERSION);
492
+ const build = pagesBuildId();
493
+ if (build !== "") c.header(PAGES_BUILD_HEADER, build);
487
494
  return streamDeferredResponse(serializePageData(pageObj) + "\n", deferredMap, c, "application/x-ndjson", options?.dev === true, (group, data) => serializePageData({
488
495
  __deferred: group,
489
496
  data
@@ -36,6 +36,7 @@ async function fetchPages(url, options, followGetRedirects = true) {
36
36
  headers
37
37
  };
38
38
  let redirectedTo;
39
+ const finalMethod = () => (init.method ?? "GET").toUpperCase();
39
40
  for (let redirects = 0; redirects <= 20; redirects++) {
40
41
  const response = await fetch(url.split("#")[0], init);
41
42
  const status = Number(response.headers.get(REDIRECT_HEADER));
@@ -49,7 +50,8 @@ async function fetchPages(url, options, followGetRedirects = true) {
49
50
  }
50
51
  return {
51
52
  response,
52
- redirectedTo
53
+ redirectedTo,
54
+ method: finalMethod()
53
55
  };
54
56
  }
55
57
  await response.body?.cancel();
@@ -66,7 +68,8 @@ async function fetchPages(url, options, followGetRedirects = true) {
66
68
  const get = status === 303 && method !== "GET" && method !== "HEAD" || (status === 301 || status === 302) && method === "POST";
67
69
  if (!isSameOrigin(destination, window.location.origin) || !followGetRedirects && (get || method === "GET" || method === "HEAD")) return {
68
70
  response,
69
- redirectedTo
71
+ redirectedTo,
72
+ method: finalMethod()
70
73
  };
71
74
  if (get) {
72
75
  for (const name of Object.keys(headers)) if (/^content-(?:type|length|encoding|language|location)$/i.test(name)) delete headers[name];
@@ -1,6 +1,6 @@
1
1
  import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-DlLDymuc.mjs";
3
- import { r as PlatformClient } from "./client-ImIe7Mjq.mjs";
2
+ import { c as getToken } from "./auth-CqwJwItO.mjs";
3
+ import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
4
  import { h as import_picocolors, o as dim } from "./output-BZLnu0z8.mjs";
5
5
  import { r as readProjectConfig } from "./project-dh9431bN.mjs";
6
6
  // src/cli/requests.ts
@@ -1,6 +1,6 @@
1
1
  import { A as confirm, H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-DlLDymuc.mjs";
3
- import { r as PlatformClient } from "./client-ImIe7Mjq.mjs";
2
+ import { c as getToken } from "./auth-CqwJwItO.mjs";
3
+ import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
4
  import { a as createSpinner, c as formatCount, d as formatRelativeTime, o as dim, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
5
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
6
6
  // src/cli/rollback.ts
@@ -78,7 +78,7 @@ async function runRollbackCommand(root, deployId, explicitPlatform) {
78
78
  }
79
79
  }
80
80
  async function runCloudflareRollback(root, deployId, restorePlatformFlag) {
81
- const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-dpRD-2Px.mjs");
81
+ const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-ByjFGats.mjs");
82
82
  const context = resolveCloudflareOperationContext(root);
83
83
  const status = await readCloudflareWorkerStatus(context);
84
84
  const deployedVersionIds = new Set(status.deployedVersionIds);
@@ -1,4 +1,5 @@
1
- import { a as mySqlMigrationLockError, o as mySqlMigrationLockName, s as readMySqlMigrationLease, t as splitMySqlMigrationSql } from "./mysql-sql-CB52k8tQ.mjs";
1
+ import { a as readMySqlMigrationLease, i as mySqlMigrationLockName, r as mySqlMigrationLockError } from "./mysql-lock-D8xtnI-D.mjs";
2
+ import { n as splitMySqlMigrationSql } from "./mysql-sql-BIE7bc4Z.mjs";
2
3
  import { t as collectMigrations } from "./collect-rNLybAnF.mjs";
3
4
  // src/migrations/runner-mysql.ts
4
5
  async function readMySqlAppliedMigrations(client) {
@@ -1 +1 @@
1
- export { t as applyMySqlMigrations, n as applyPendingMySqlMigrations, r as getMySqlAppliedMigrations, i as readMySqlAppliedMigrations, a as runMySqlMigrations, o as toMySqlClient, s as withMySqlMigrationLock, c as withMySqlMigrationLockAt } from "./runner-mysql-3XDKrn-g.mjs";
1
+ export { t as applyMySqlMigrations, n as applyPendingMySqlMigrations, r as getMySqlAppliedMigrations, i as readMySqlAppliedMigrations, a as runMySqlMigrations, o as toMySqlClient, s as withMySqlMigrationLock, c as withMySqlMigrationLockAt } from "./runner-mysql-D549vGGm.mjs";
@@ -1,4 +1,5 @@
1
- import { i as holdMySqlMigrationLease, n as splitMySqlMigrationStatements, r as acquireMySqlMigrationLease } from "../../../mysql-sql-CB52k8tQ.mjs";
1
+ import { n as holdMySqlMigrationLease, t as acquireMySqlMigrationLease } from "../../../mysql-lock-D8xtnI-D.mjs";
2
+ import { r as splitMySqlMigrationStatements } from "../../../mysql-sql-BIE7bc4Z.mjs";
2
3
  // src/runtime/db/migrations/mysql-handler.ts
3
4
  function createMigrationHandler(env, migrations, runAuthMigrations) {
4
5
  return async (request) => {
@@ -1,10 +1,10 @@
1
1
  import { a as hasActionKey, c as searchWithoutActionKey, i as actionKeySegment, l as searchWithoutPreservedQuery, o as markActionKey, r as PRESERVED_QUERY_HEADER, s as queryKey, t as decodePagePath } from "../../url-DBQluotE.mjs";
2
- import { n as pagesRedirectResponse } from "../../redirect-DD825Stf.mjs";
2
+ import { n as pagesRedirectResponse } from "../../redirect-Dyvuil0Q.mjs";
3
3
  import { i as authDependentRequests, n as markStaticAsset, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "../../static-asset-marker-lxYeKvFP.mjs";
4
4
  import { t as VoidAssetRewriteError } from "../../handler-DCrDLzw2.mjs";
5
5
  import { t as convertReturnValue } from "../../response-CyXsGfOy.mjs";
6
6
  import { n as createClientAssetTags, r as createManifestLoader, t as ASSET_EXTENSIONS } from "../../assets-Br6_BeFJ.mjs";
7
- import { i as recoverPageHttpException, n as handlePageGet, o as handlesPageLoaderNotFound, r as handlePageMutation, s as ownsLoaderNotFoundBoundary } from "../../protocol-CE3wP-H1.mjs";
7
+ import { i as recoverPageHttpException, n as handlePageGet, o as handlesPageLoaderNotFound, r as handlePageMutation, s as ownsLoaderNotFoundBoundary } from "../../protocol-4rEnumif.mjs";
8
8
  import { r as toUrlString, t as interpolateRouteParams } from "../../route-url-B41eQ8QI.mjs";
9
9
  import { t as renderDefaultErrorPage } from "../../error-pages-GORL6F_e.mjs";
10
10
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { A as confirm, H as outro, L as log, O as cancel, U as password, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-DlLDymuc.mjs";
3
- import { r as PlatformClient } from "./client-ImIe7Mjq.mjs";
2
+ import { c as getToken } from "./auth-CqwJwItO.mjs";
3
+ import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
4
  import { _ as validateSecretValues } from "./env-validation-D-v5_CWL.mjs";
5
5
  import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
6
6
  import { c as formatCount, g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
@@ -98,7 +98,7 @@ async function resolveSecretBackend(root, args) {
98
98
  }
99
99
  async function resolveCloudflareSecretBackend(root, args) {
100
100
  if (args.projectName) throw new Error("secret: --project selects a Void platform project and is not used for direct Cloudflare apps.");
101
- const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-dpRD-2Px.mjs");
101
+ const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-ByjFGats.mjs");
102
102
  const context = resolveCloudflareOperationContext(root);
103
103
  return {
104
104
  target: "Cloudflare Worker",
@@ -62,7 +62,7 @@ Content-Type: application/json
62
62
 
63
63
  Set `cron` to an expression exported by your job. A successful call returns `{ "ok": true }`.
64
64
 
65
- The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts.
65
+ The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts. The development trigger is unavailable in `vp preview` and `vite preview`.
66
66
 
67
67
  ```bash
68
68
  curl -X POST http://localhost:5173/__void/scheduled \
@@ -34,9 +34,9 @@ Middleware does not run again after the action. To change [shared data](./layout
34
34
 
35
35
  ## Form
36
36
 
37
- Pair `Form` with `useForm` to submit values and display validation and action errors. Inputs stay editable when a submission fails.
37
+ Pair `Form` with `useForm` to submit values. Inputs stay editable when a submission fails. `Form` shows an alert above the fields when there is an error. The alert shows the action error from `form.error` when present and joins the messages from `form.errors` otherwise.
38
38
 
39
- Import `Form` from your adapter. Pass `form` and, optionally, `method="put"`, `"patch"`, or `"delete"`; the default is `"post"`. Use `renderError` for a custom action-error renderer (a snippet in Svelte).
39
+ Import `Form` from your adapter. Pass `form` and optionally set `method` to `"put"`, `"patch"`, or `"delete"`. The default is `"post"`. Use `renderError` for custom action-error text (a snippet in Svelte). Field messages use the alert with or without `renderError`.
40
40
 
41
41
  ## `useForm`
42
42
 
@@ -66,14 +66,12 @@ export default function CreateUser() {
66
66
  value={form.data.name}
67
67
  onChange={(e) => form.setData('name', e.target.value)}
68
68
  />
69
- {form.errors.name && <span>{form.errors.name}</span>}
70
69
 
71
70
  <input
72
71
  name="email"
73
72
  value={form.data.email}
74
73
  onChange={(e) => form.setData('email', e.target.value)}
75
74
  />
76
- {form.errors.email && <span>{form.errors.email}</span>}
77
75
 
78
76
  <SubmitButton />
79
77
  </Form>
@@ -92,10 +90,7 @@ const form = useForm('/users', { name: '', email: '' });
92
90
  <template>
93
91
  <Form :form="form">
94
92
  <input v-model="form.data.name" />
95
- <span v-if="form.errors.name">{{ form.errors.name }}</span>
96
-
97
93
  <input v-model="form.data.email" />
98
- <span v-if="form.errors.email">{{ form.errors.email }}</span>
99
94
 
100
95
  <button :disabled="form.pending">Create</button>
101
96
  </Form>
@@ -112,10 +107,7 @@ const form = useForm('/users', { name: '', email: '' });
112
107
 
113
108
  <Form {form}>
114
109
  <input bind:value={form.data.name} />
115
- {#if form.errors.name}<span>{form.errors.name}</span>{/if}
116
-
117
110
  <input bind:value={form.data.email} />
118
- {#if form.errors.email}<span>{form.errors.email}</span>{/if}
119
111
 
120
112
  <button disabled={form.pending}>Create</button>
121
113
  </Form>
@@ -131,10 +123,7 @@ export default function CreateUser() {
131
123
  return (
132
124
  <Form form={form}>
133
125
  <input value={form.data.name} onInput={(e) => form.setData('name', e.target.value)} />
134
- {form.errors.name && <span>{form.errors.name}</span>}
135
-
136
126
  <input value={form.data.email} onInput={(e) => form.setData('email', e.target.value)} />
137
- {form.errors.email && <span>{form.errors.email}</span>}
138
127
 
139
128
  <button disabled={form.pending}>Create</button>
140
129
  </Form>
@@ -333,9 +322,41 @@ import { useForm } from '@void/react'; // or "@void/vue", "@void/svelte", "@void
333
322
  const form = useForm('/users', { name: '', email: '' }, { throwOnError: false });
334
323
  ```
335
324
 
336
- Validation errors appear in `form.errors`; other HTTP failures appear in `form.error`. `Form` displays the error for you. In React, `onError` also receives it.
325
+ Validation errors appear in `form.errors`. Other HTTP failures appear in `form.error`. In React, `onError` also receives the error.
326
+
327
+ Network errors and other unexpected failures still throw. Cancelled submissions don't set `form.error`.
328
+
329
+ When the alert shows field errors, rendering `form.errors.<field>` inside `Form` repeats the message. To show each message beside its input, use a plain `<form>` that submits with `form.post`. A plain form can submit during a retry delay unless you block submission yourself.
330
+
331
+ In React, pass `form.post` as the form's action.
332
+
333
+ ```tsx
334
+ import { useForm } from '@void/react';
335
+
336
+ export default function CreateUser() {
337
+ const form = useForm('/users', { name: '', email: '' });
338
+
339
+ return (
340
+ <form action={form.post}>
341
+ <input
342
+ name="name"
343
+ value={form.data.name}
344
+ onChange={(e) => form.setData('name', e.target.value)}
345
+ />
346
+ {form.errors.name && <span>{form.errors.name}</span>}
347
+
348
+ <input
349
+ name="email"
350
+ value={form.data.email}
351
+ onChange={(e) => form.setData('email', e.target.value)}
352
+ />
353
+ {form.errors.email && <span>{form.errors.email}</span>}
337
354
 
338
- Network errors and other unexpected failures still throw. Cancelled submissions don't set a form error.
355
+ <button disabled={form.pending}>Create</button>
356
+ </form>
357
+ );
358
+ }
359
+ ```
339
360
 
340
361
  Use `isVoidActionError()` to read an action error's `status` and `message`, including thrown errors:
341
362
 
@@ -92,7 +92,9 @@ Action errors that reach a client boundary keep their HTTP status and public mes
92
92
 
93
93
  ## HTTP exceptions
94
94
 
95
- Throw an `HTTPException` to show a specific error in your page's layout. For example, a suspended account can return `403` with an explanation:
95
+ Throw an `HTTPException` to show a specific error. Void renders the selected `_error` inside the page's layouts at or above the error component's directory, including any named layout at those positions. Deeper layouts are dropped. With `layout = false`, the error renders on its own. To keep a section's navigation, [add an `_error` in that section](#nested-errors).
96
+
97
+ A suspended account can return `403` with an explanation.
96
98
 
97
99
  ```ts
98
100
  // pages/account.server.ts
@@ -15,6 +15,8 @@ You can also use your own client-side router and call Void's APIs with [typed fe
15
15
 
16
16
  In an empty project, `void init` can set up Pages for you. Choose Vite+ or plain Vite, then React, Vue, Svelte, or Solid and a database or static starter. The generated app includes the matching Vite config and page files.
17
17
 
18
+ With TypeScript 7 and Vue 3.5’s default compiler, `_error.vue`, `_not-found.vue`, and regular components used by pages fail to compile when `defineProps<T>()` uses a type imported from a relative file or a package. New Vue starters default to TypeScript 6 so these imports work. In existing projects on TypeScript 7, install `typescript@6` or declare the props type in the component. [vuejs/core#15085](https://github.com/vuejs/core/pull/15085)
19
+
18
20
  If you're adding Pages mode manually, install a framework adapter alongside `void`:
19
21
 
20
22
  ::: code-group
@@ -128,6 +130,24 @@ Production deploys exclude resources used only by `.dev` pages and their compani
128
130
 
129
131
  The first request receives rendered HTML. Later navigations run the loader and update the page without reloading the document. Form submissions run an action, then refresh page props or redirect.
130
132
 
133
+ ### After a deploy
134
+
135
+ An open tab keeps the code it loaded. Deploy while it stays open, and its next navigation asks for chunks that no longer exist.
136
+
137
+ Void recovers that navigation. The tab sends the build it is running with each page request, and an answer from a different build makes it load the requested page as a document instead of rendering it. The destination keeps its query string and fragment, and the current page stays visible until the load starts.
138
+
139
+ These never reload the tab:
140
+
141
+ - A prefetch drops the response and lets the next navigation decide.
142
+ - A form submission keeps its response, so the action never runs twice. If the action redirects, the destination loads as a document.
143
+ - A failed request is not treated as a deploy.
144
+
145
+ If that document load still returns the old build, for example from a CDN that caches HTML across deploys, the tab shows an error page instead of reloading again. Keep HTML out of shared caches, or purge it on deploy.
146
+
147
+ Prerendered pages of an [`output: "static"`](../ssg.md) app are served as files and are not covered: a stale tab still reaches its error boundary there.
148
+
149
+ Recovery is on by default. Set `deployRecovery: false` in your framework plugin's options to keep your own [error boundaries](./errors.md) in charge instead.
150
+
131
151
  To opt a specific route out of server-rendered component HTML, export `ssr = false` from its companion `.server.ts` file:
132
152
 
133
153
  ```ts
@@ -22,7 +22,7 @@ choose to protect apps. To renew their token in Admin, leave the policy fields b
22
22
  - A Cloudflare Zero Trust organization in the account that hosts the platform, with the identity providers and reusable Access policies you want to use. Select at least one Allow policy that matches people by identity. Void rejects Bypass and Service Auth policies, and rules that allow Everyone or any service token.
23
23
  - A Cloudflare API token for that account with **Access: Apps and Policies Write** and **Access: Organizations, Identity Providers, and Groups Read**. Void keeps it separate from the platform runtime token, stores it encrypted, and never shows it again.
24
24
  - Free Access applications in the account. Cloudflare's default limit is 500 per account. Count the applications you already manage outside Void, then add the ones Void needs, as described in [Access Applications Void Creates](#access-applications-void-creates).
25
- - Platform API, proxy, and email gateway hostnames outside the project application domain. Configuration is rejected when project protection would cover one of them. Any other hostname under the project application domain also asks for sign-in, except the `/health` path of `void-platform-health.<your domain>`, which Void keeps open for its health checks and never serves from a project. New projects cannot use that name. A project that already uses it keeps every other path, protected or public like any other project.
25
+ - Platform API, proxy, and email gateway hostnames outside the project application domain. Configuration is rejected when project protection would cover one of them. Any other hostname under the project application domain also asks for sign-in, except `/health` and the paths under it on `void-platform-health.<your domain>`. Void keeps these open for its health checks and answers them itself, never from a project. New projects cannot use that name. A project that already uses it keeps its other paths, protected or public like any other project, but cannot serve paths that start with `/health`.
26
26
 
27
27
  ## Enable Zero Trust
28
28
 
@@ -30,9 +30,9 @@ that the application covers the printed API and proxy origins. A Cloudflare
30
30
  management API token does not authenticate an Access-protected HTTP request.
31
31
 
32
32
  For automatic setup, resuming also creates or verifies an Access exception
33
- limited to `/health` on the reserved dispatch health hostname. Void still requires
34
- its private probe token on that endpoint; requests without it cannot reach an
35
- application. This lets installation check routing while employee protection and
33
+ limited to `/health` and the paths under it on the reserved dispatch health
34
+ hostname. Void still requires its private probe token on that endpoint; requests
35
+ without it cannot reach an application. This lets installation check routing while employee protection and
36
36
  account-wide Default-Deny remain enabled. It does not bypass Access for an entire
37
37
  Worker or for deployed apps.
38
38
 
@@ -126,6 +126,8 @@ Some upgrades pause application traffic until the new version passes health chec
126
126
  2. Fix the reported problem.
127
127
  3. Run the printed resume command with the same runtime. Traffic resumes when it succeeds.
128
128
 
129
+ If the upgrade adds the security scan scheduler, Void pauses traffic while it provisions the new Durable Object class. Once Cloudflare creates the class, resume the upgrade with the same runtime if it stops. Cloudflare can no longer activate an older API Worker that lacks the class.
130
+
129
131
  ::: details Migration safety, credential rotation, and rollback
130
132
 
131
133
  To update the runtime Cloudflare token, GitHub OAuth credentials when GitHub login is enabled, or R2 credentials,
@@ -143,7 +143,7 @@ Content-Type: application/json
143
143
  { "queue": "<queue-name>", "messages": [{ "id": "1", "timestamp": <unix_ms>, "body": <any>, "attempts": 1 }] }
144
144
  ```
145
145
 
146
- The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts.
146
+ The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts. The development trigger is unavailable in `vp preview` and `vite preview`.
147
147
 
148
148
  ```bash
149
149
  curl -X POST http://localhost:5173/__void/queue \
@@ -21,7 +21,7 @@ cd my-app
21
21
  ### 2. Install dependencies
22
22
 
23
23
  ```bash
24
- npm install -D @sveltejs/adapter-cloudflare void
24
+ npm install -D @sveltejs/adapter-cloudflare@8 void
25
25
  ```
26
26
 
27
27
  ### 3. Configure `vite.config.ts`
@@ -91,6 +91,7 @@ interface VoidVueOptions {
91
91
  hoverDelay?: number; // default: 75 (ms)
92
92
  cacheFor?: number | string | [string, string]; // default: '30s'
93
93
  };
94
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
94
95
  }
95
96
  ```
96
97
 
@@ -147,6 +148,7 @@ interface VoidReactOptions {
147
148
  hoverDelay?: number; // default: 75 (ms)
148
149
  cacheFor?: number | string | [string, string]; // default: '30s'
149
150
  };
151
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
150
152
  }
151
153
  ```
152
154
 
@@ -232,6 +234,7 @@ interface VoidSvelteOptions {
232
234
  hoverDelay?: number; // default: 75 (ms)
233
235
  cacheFor?: number | string | [string, string]; // default: '30s'
234
236
  };
237
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
235
238
  }
236
239
  ```
237
240
 
@@ -286,6 +289,7 @@ interface VoidSolidOptions {
286
289
  hoverDelay?: number; // default: 75 (ms)
287
290
  cacheFor?: number | string | [string, string]; // default: '30s'
288
291
  };
292
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
289
293
  }
290
294
  ```
291
295