diff --git a/docs/guide/jobs.md b/docs/guide/jobs.md
index f0c613774..d484dcd7c 100644
--- a/docs/guide/jobs.md
+++ b/docs/guide/jobs.md
@@ -62,7 +62,7 @@ Content-Type: application/json
Set `cron` to an expression exported by your job. A successful call returns `{ "ok": true }`.
-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 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`.
```bash
curl -X POST http://localhost:5173/__void/scheduled \
diff --git a/docs/guide/pages-routing/actions-and-forms.md b/docs/guide/pages-routing/actions-and-forms.md
index dfcf47a46..a72f6718b 100644
--- a/docs/guide/pages-routing/actions-and-forms.md
+++ b/docs/guide/pages-routing/actions-and-forms.md
@@ -34,9 +34,9 @@ Middleware does not run again after the action. To change [shared data](./layout
## Form
-Pair `Form` with `useForm` to submit values and display validation and action errors. Inputs stay editable when a submission fails.
+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.
-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).
+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`.
## `useForm`
@@ -66,14 +66,12 @@ export default function CreateUser() {
value={form.data.name}
onChange={(e) => form.setData('name', e.target.value)}
/>
- {form.errors.name && {form.errors.name}}
form.setData('email', e.target.value)}
/>
- {form.errors.email && {form.errors.email}}
@@ -92,10 +90,7 @@ const form = useForm('/users', { name: '', email: '' });
@@ -112,10 +107,7 @@ const form = useForm('/users', { name: '', email: '' });
@@ -131,10 +123,7 @@ export default function CreateUser() {
return (
@@ -333,9 +322,41 @@ import { useForm } from '@void/react'; // or "@void/vue", "@void/svelte", "@void
const form = useForm('/users', { name: '', email: '' }, { throwOnError: false });
```
-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.
+Validation errors appear in `form.errors`. Other HTTP failures appear in `form.error`. In React, `onError` also receives the error.
+
+Network errors and other unexpected failures still throw. Cancelled submissions don't set `form.error`.
+
+When the alert shows field errors, rendering `form.errors.` inside `Form` repeats the message. To show each message beside its input, use a plain `
+ );
+}
+```
Use `isVoidActionError()` to read an action error's `status` and `message`, including thrown errors:
diff --git a/docs/guide/pages-routing/errors.md b/docs/guide/pages-routing/errors.md
index b107ed6f7..dbb0f253c 100644
--- a/docs/guide/pages-routing/errors.md
+++ b/docs/guide/pages-routing/errors.md
@@ -92,7 +92,9 @@ Action errors that reach a client boundary keep their HTTP status and public mes
## HTTP exceptions
-Throw an `HTTPException` to show a specific error in your page's layout. For example, a suspended account can return `403` with an explanation:
+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).
+
+A suspended account can return `403` with an explanation.
```ts
// pages/account.server.ts
diff --git a/docs/guide/queues.md b/docs/guide/queues.md
index 44ef53d7e..af352349e 100644
--- a/docs/guide/queues.md
+++ b/docs/guide/queues.md
@@ -143,7 +143,7 @@ Content-Type: application/json
{ "queue": "", "messages": [{ "id": "1", "timestamp": , "body": , "attempts": 1 }] }
```
-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 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`.
```bash
curl -X POST http://localhost:5173/__void/queue \
diff --git a/docs/integrations/frameworks/sveltekit.md b/docs/integrations/frameworks/sveltekit.md
index 58b046b2c..6d76ccee8 100644
--- a/docs/integrations/frameworks/sveltekit.md
+++ b/docs/integrations/frameworks/sveltekit.md
@@ -21,7 +21,7 @@ cd my-app
### 2. Install dependencies
```bash
-npm install -D @sveltejs/adapter-cloudflare void
+npm install -D @sveltejs/adapter-cloudflare@8 void
```
### 3. Configure `vite.config.ts`
diff --git a/docs/reference/cli/database.md b/docs/reference/cli/database.md
index 6210d5677..3d86e4846 100644
--- a/docs/reference/cli/database.md
+++ b/docs/reference/cli/database.md
@@ -111,7 +111,7 @@ If a statement fails, stdout stays empty.
void db migrate [--remote]
```
-Apply pending migrations to the local database without resetting. Unlike `void db reset`, this preserves existing data and only runs migrations that haven't been applied yet.
+Apply pending migrations to the local database without resetting. Unlike `void db reset`, this preserves existing data and only runs migrations that haven't been applied yet. To allow a destructive migration, add `-- void:allow-destructive` on its own line in the SQL file.
Pass `--remote` to apply pending migrations to the saved target. Hosted projects require a Void login and link. Direct Cloudflare D1 projects use the binding's configured migration directory, table, and pattern. The D1 binding must set `migrations_dir`. Direct PostgreSQL and MySQL projects use the shell `DATABASE_URL`.
diff --git a/docs/reference/cli/setup.md b/docs/reference/cli/setup.md
index aa9db825a..76a9d9faa 100644
--- a/docs/reference/cli/setup.md
+++ b/docs/reference/cli/setup.md
@@ -49,6 +49,8 @@ void init --toolchain vite-plus --framework react --starter sqlite --deploy none
npm create void@latest my-app -- --toolchain vite-plus --framework react --starter sqlite --deploy none
```
+`npm create void ` takes a single directory name and creates it inside the current directory. Use up to 63 characters from `a-z`, `0-9`, and `-`, with a letter or digit at each end.
+
For non-interactive scaffolding, choose `--deploy none` and run `void connect` later to sign in.
Vite+ is the recommended toolchain. Vite+ starters include [`@cloudflare/oxlint-config`](https://github.com/cloudflare/oxlint-config). Run `vp lint` to check your code.