We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditorServer
BaseUrl
跳转EditorServer使用的url,使用的是相对路径'/__open-stack-frame-in-editor'; 当我把开发服务器地址,反代理到域名时,则会出现gotoServerEditor失败的情况。
gotoServerEditor
把abc.com/123转发到我的开发服务器地址localhost:5233时,则会出现问题。
abc.com/123
localhost:5233
有个配置入口,如EditorServerBaseUrl: 'localhost:5233',让我写死请求的baseUrl,再拼接路径'/__open-stack-frame-in-editor'。
EditorServerBaseUrl: 'localhost:5233'
https://github.com/zthxxx/react-dev-inspector/blob/6d1f63565305b5acc4c2ccadf7878ffa75f10144/packages/inspector/src/Inspector/utils/editor.ts
The text was updated successfully, but these errors were encountered:
虽然我可以配置把abc.com/__open-stack-frame-in-editor 转发到 localhost:5233/__open-stack-frame-in-editor。 但每个项目的域名配置都不同,开发体验不好。
abc.com/__open-stack-frame-in-editor
localhost:5233/__open-stack-frame-in-editor
Sorry, something went wrong.
想问问你们开发和代理链路是怎么样的?具体的 html / 静态资源 / 后端接口 / dev server 都是怎么代理的
用纯前端项目vite脚手架的举例
https://localhost:4173/eew-management
abc.com/api/v1/xxx
abc.com/eew-management
之后版本会放在右键菜单面板的配置中做自定义
现在的话,有两种方式
<Inspector>
onInspectElement
v2.1.0
v2.1.0-beta.10
/__inspect-open-in-editor
import { launchEditorEndpoint } from '@react-dev-inspector/launch-editor-endpoint'
/__open-stack-frame-in-editor
No branches or pull requests
需求背景
跳转
EditorServer
使用的url,使用的是相对路径'/__open-stack-frame-in-editor';当我把开发服务器地址,反代理到域名时,则会出现
gotoServerEditor
失败的情况。失败现象
把

abc.com/123
转发到我的开发服务器地址localhost:5233
时,则会出现问题。希望优化
有个配置入口,如
EditorServerBaseUrl: 'localhost:5233'
,让我写死请求的baseUrl,再拼接路径'/__open-stack-frame-in-editor'。关联代码
https://github.com/zthxxx/react-dev-inspector/blob/6d1f63565305b5acc4c2ccadf7878ffa75f10144/packages/inspector/src/Inspector/utils/editor.ts
The text was updated successfully, but these errors were encountered: