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
Controls whether content hot reloading is enabled during development.
481
479
482
-
Value:
483
-
484
-
-`enabled`: Enable/Disable hot reload.
485
-
-`port`: Select the port used for the WebSocket server.
486
-
-`showURL`: Toggle URL display in dev server boot message.
480
+
**Options:**
487
481
488
-
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.
482
+
-`enabled` (`boolean`): Enable or disable hot reloading when editing content files.
483
+
-`true` (default): Automatically reloads content changes in your application during development.
484
+
-`false`: Disables hot reloading; changes require a manual refresh.
489
485
490
486
::callout
491
-
The watcher is a development feature and will not be included in production.
492
-
::
493
-
494
-
::code-group
495
-
```ts [Enabled]
496
-
exportdefaultdefineNuxtConfig({
497
-
content: {
498
-
watch: {
499
-
port: 4000,
500
-
showURL: true
501
-
}
502
-
}
503
-
})
504
-
```
505
-
506
-
```ts [Disabled]
507
-
exportdefaultdefineNuxtConfig({
508
-
content: {
509
-
watch: {
510
-
enabled: false
511
-
}
512
-
}
513
-
})
514
-
```
487
+
The content watcher only runs in development and leverages the Vite dev server to detect content updates and send events to your application for live updates.
0 commit comments