Skip to content

Commit 8774aea

Browse files
authored
tweak devtools-json docs (#613)
* fix docs * add 'Alternatives' section — reads a bit nicer IMHO
1 parent 8808a7b commit 8774aea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

documentation/docs/30-add-ons/03-devtools-json.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ The `devtools-json` add-on installs [`vite-plugin-devtools-json`](https://github
77
> [!NOTE]
88
> 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.
99
10-
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.
10+
## Alternatives
11+
12+
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.
13+
14+
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.
1115

1216
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:
1317

0 commit comments

Comments
 (0)