You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8b26dba
Browse filesBrowse the repository at this point in the historyBrowse files
|`persistTo`|`string`| Directory path for persisting local dev state (D1, KV, R2). Defaults to `.void/` in the project root. |
22
-
|`auxiliaryWorkers`|`AuxiliaryWorkerConfig[]`| Additional workers to run inside the same Miniflare instance during dev. Passed through to `@cloudflare/vite-plugin`. Useful for running multiple workers that share bindings (e.g. a separate API worker alongside a dashboard). |
|`persistTo`|`string`| Directory path for persisting local dev state (D1, KV, R2). Defaults to `.void/` in the project root. |
22
+
|`auxiliaryWorkers`|`AuxiliaryWorkerConfig[]`| Additional Workers to run alongside your app, such as a separate API Worker and dashboard that share bindings. Each entry accepts `configPath` (JSON, JSONC, or TOML), `config` (settings or a callback), `viteEnvironment`, and `devOnly`. |
Copy file name to clipboardExpand all lines: docs/reference/cli/setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Resources recorded in `void.lock.json` without a matching definition appear sepa
23
23
24
24
`void migrate` converts legacy `void.json` and root `wrangler.jsonc` or `wrangler.json` files into `void.config.ts`. It also accepts one root `wrangler*.json(c)` file referenced by a supported framework adapter. Void saves backups in `.void/config-migration/`, records resource IDs in `void.lock.json`, and updates supported adapters to use its generated Cloudflare config.
25
25
26
-
`.void-wrangler.jsonc` is generated for Cloudflare tooling and belongs in `.gitignore`; migration adds the entry. Review and commit `void.config.ts`, `void.lock.json`, and `.gitignore`. `void init` and `void deploy` migrate legacy files automatically. If the project has conflicting or multiple Cloudflare configs, resolve them first. The project's installed `void` package must match the CLI version before Cloudflare deployment.
26
+
`void migrate` also adds `.cloudflare` to `.gitignore`, including in projects that already use `void.config.ts`. Configuration migration adds `.void-wrangler.jsonc` to `.gitignore` as well. Review and commit `void.config.ts`, `void.lock.json`, and `.gitignore`. `void init` and `void deploy` migrate legacy files automatically. If the project has conflicting or multiple Cloudflare configs, resolve them first. The project's installed `void` package must match the CLI version before Cloudflare deployment.
'▲ The local configuration being used (generated from your local configuration file) differs from the remote configuration of your Worker set via the Cloudflare Dashboard:',
127
+
'│ {',
128
+
'│ vars: {',
129
+
'│ - REMOTE_VALUE: "do-not-echo"',
130
+
`│ + LOCAL_VALUE: "${abort} do-not-echo"`,
131
+
'│ }',
132
+
'│ }',
133
+
'│',
134
+
'│ Uploading the Worker will override the remote configuration with your local one.',
135
+
`■ ${abort}`,
136
+
'◆ Version upload complete',
137
+
].join('\n'),
138
+
}),
139
+
).toBe(abort);
140
+
});
141
+
56
142
it('retains plain stderr and process-spawn failures',()=>{
0 commit comments