Skip to content

Commit 602f6da

Browse files
Sync cli docs (#1394)
sync cli docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 09a2dab commit 602f6da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/svelte.dev/content/docs/cli/30-add-ons/03-devtools-json.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ The `devtools-json` add-on installs [`vite-plugin-devtools-json`](https://github
88
> [!NOTE]
99
> Installing the plugin enables the feature for all users connecting to the dev server with a Chromium browser, and allows the browser to read and write all files within the directory. If using Chrome's AI Assistance feature, this may also result in data being sent to Google.
1010
11-
You can prevent the request from being issued on your machine by disabling the feature in your browser. You can do this in Chrome by visiting `chrome://flags` and disabling the "DevTools Project Settings". You may also be interested in disabling "DevTools Automatic Workspace Folders" since it’s closely related.
11+
## Alternatives
12+
13+
If you'd prefer not to install the plugin, but still want to avoid seeing a message about the missing file, you have a couple of options.
14+
15+
Firstly, you can prevent the request from being issued on your machine by disabling the feature in your browser. You can do this in Chrome by visiting `chrome://flags` and disabling the "DevTools Project Settings". You may also be interested in disabling "DevTools Automatic Workspace Folders" since it’s closely related.
1216

1317
You can also prevent the web server from issuing a notice regarding the incoming request for all developers of your application by handling the request yourself. For example, you can create a file named `.well-known/appspecific/com.chrome.devtools.json` with the contents `"Go away, Chrome DevTools!"` or you can add logic to respond to the request in your [`handle`](https://svelte.dev/docs/kit/hooks#Server-hooks-handle) hook:
1418

0 commit comments

Comments
 (0)