Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tame-teachers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: warning for chrome devtools requests now suggests sv instead of vite plugin
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/server/respond.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,11 @@ export async function respond(request, options, manifest, state) {
if (state.depth === 0) {
// In local development, Chrome requests this file for its 'automatic workspace folders' feature,
// causing console spam. If users want to serve this file they can install
// https://github.com/ChromeDevTools/vite-plugin-devtools-json
// https://svelte.dev/docs/cli/devtools-json
if (DEV && event.url.pathname === '/.well-known/appspecific/com.chrome.devtools.json') {
if (!warned_on_devtools_json_request) {
console.warn(
`\nGoogle Chrome is requesting ${event.url.pathname} to automatically configure devtools project settings. To serve this file, add this plugin to your Vite config:\n\nhttps://github.com/ChromeDevTools/vite-plugin-devtools-json\n`
`\nGoogle Chrome is requesting ${event.url.pathname} to automatically configure devtools project settings. For learn why, and how to prevent this message, see https://svelte.dev/docs/cli/devtools-json\n`
);

warned_on_devtools_json_request = true;
Expand Down
Loading