diff --git a/.changeset/tame-teachers-listen.md b/.changeset/tame-teachers-listen.md new file mode 100644 index 000000000000..c75daddb6086 --- /dev/null +++ b/.changeset/tame-teachers-listen.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: warning for chrome devtools requests now suggests sv instead of vite plugin diff --git a/packages/kit/src/runtime/server/respond.js b/packages/kit/src/runtime/server/respond.js index 783c7d0ee65a..4ca265beab88 100644 --- a/packages/kit/src/runtime/server/respond.js +++ b/packages/kit/src/runtime/server/respond.js @@ -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` + console.log( + `\nGoogle Chrome is requesting ${event.url.pathname} to automatically configure devtools project settings. To learn why, and how to prevent this message, see https://svelte.dev/docs/cli/devtools-json\n` ); warned_on_devtools_json_request = true;