diff --git a/README.md b/README.md index 5b4e11e..658e4e6 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ The data we collect is completely anonymous, not traceable to the source (using You can disable Nuxt Telemetry for your project in several ways: +### Nuxt 3 1. Setting `telemetry: false` in your `nuxt.config`: ```js @@ -65,6 +66,18 @@ export default { } ``` +### Nuxt 4 +1. Setting `telemetry: { enabled: false }` in your `nuxt.config`: + +```js +export default { + telemetry: { + enabled: false, + } +} +``` + +### Universal (Both Nuxt 3 & 4) 2. Using an environment variable: ```bash @@ -81,14 +94,24 @@ npx @nuxt/telemetry [status|enable|disable] [-g,--global] [dir] ## Skip Prompt -If you encounter problems with the consent prompt and want to participate without being asked this question, you can set `telemetry: true` from `nuxt.config`: +If you encounter problems with the consent prompt and want to participate without being asked this question, you can set the following in your `nuxt.config`: +### Nuxt 3 ```js export default { telemetry: true } ``` +### Nuxt 4 +```js +export default { + telemetry: { + enabled: true, + } +} +``` + ## Thank you We want to thank you for participating in this telemetry program to help us better understand how you use Nuxt to keep improving it 💚