Skip to content

Commit 4e8cf05

Browse files
committed
docs: fix watch option usage
resovles #3216
1 parent ad62971 commit 4e8cf05

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/content/docs/1.getting-started/3.configuration.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ export default defineNuxtConfig({
429429
```ts [Default]
430430
watch: {
431431
enabled: true,
432-
ws: { port: 4000, showURL: false }
432+
port: 4000,
433+
showURL: false
433434
}
434435
```
435436

@@ -441,6 +442,8 @@ Value:
441442
- `port`: Select the port used for the WebSocket server.
442443
- `showURL`: Toggle URL display in dev server boot message.
443444

445+
Nuxt Content uses [listhen](https://github.com/unjs/listhen) to provide a local development server. Check out the [listhen documentation](https://github.com/unjs/listhen#options) for more information.
446+
444447
::callout
445448
The watcher is a development feature and will not be included in production.
446449
::
@@ -450,10 +453,8 @@ The watcher is a development feature and will not be included in production.
450453
export default defineNuxtConfig({
451454
content: {
452455
watch: {
453-
ws: {
454-
port: 4000,
455-
showURL: true
456-
}
456+
port: 4000,
457+
showURL: true
457458
}
458459
}
459460
})

0 commit comments

Comments
 (0)