Support devtools project settings

#20361

Issue Details

28 days ago
No assignee
pending triage
remcohaszingremcohaszing
opened 28 days ago
Author

Description

Google Chrome added a feature for automatic workspace folders detection. On localhost URLs, Chrome requests /.well-known/appspecific/com.chrome.devtools.json. This endpoint must serve the following JSON:

{ "workspace": { "root": "/path/to/project/root", "uuid": "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b" } }

This is kind of useful, but also annoying. Many servers don’t implement this, meaning the request yields 404 Not Found.

The Chrome team also made vite-plugin-devtools-json. This works well, but I expect most users won’t install a plugin just for this.

Suggested solution

Incorporate this functionality into the Vite dev server by default.

Alternative

Don’t add this functionality.

Additional context

No response

Validations