host and port setting for open-in-editor for vue devtools
See original GitHub issueClear and concise description of the problem
Open in editor only works when browsing a vue app on the same host as the dev server is running. When the app is loaded into a domain, like mylocaldomain.com or mydomain.com.localhost, clicking open-in-editor in vue devtools will fetch
Suggested solution
server: {
devtools: {
host: 'localhost',
port: 3005,
protocol: 'https'
}
}
Alternative
Workaround is to add a URL Rewrite rule. Example for web.config:
<rule name="Rewrite for vue devtools" stopProcessing="true">
<match url="^__open-in-editor(.*)$" ignoreCase="true" />
<action type="Redirect" url="https://localhost:3005/__open-in-editor{R:1}" />
</rule>
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Open component in editor | Vue Devtools
In your Vue project, install the launch-editor-middleware package and modify your webpack configuration: Import the package:.
Read more >Vue Devtools: The Simplest Way to Debug Your Vue.js ...
There are three ways to install the Vue Devtools: ... Then start your development server like you are used to, without killing the...
Read more >How To Debug Components, State, and Events with Vue.js ...
Now open your browser and open the Vue.js Devtools. In the left pane, highlight the <App> component. On the right column, the setup...
Read more >Vue.js DevTools Tutorial - Flavio Copes
As mentioned, the Vue DevTools can be activated by opening the Developer Tools in the browser and moving to the Vue panel. Another...
Read more >vue-devtools always disabled with nuxt.js - Stack Overflow
PORT || 5000, host: '0.0.0.0' },. Adding this to nuxt.config.js solved the problem.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m in favor of having a better dx by automating this 👍
https://devtools.vuejs.org/guide/open-in-editor.html#customize-request