Skip to content
New issue

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

使用代理后通过https访问开发页面,热更新失效 #4260

Open
tarnishablec opened this issue Apr 22, 2021 · 2 comments
Open

使用代理后通过https访问开发页面,热更新失效 #4260

tarnishablec opened this issue Apr 22, 2021 · 2 comments

Comments

@tarnishablec
Copy link

What is the current behavior? 发生了什么?

现在devServer应该是默认通过域名的协议判断了hmr走ws还是wss协议,但是实际上在走代理的场景下不适用 ,如果能参考
vite hmr config,可以在build.json中自行配置hmr的协议就好了

截屏2021-04-22 下午5 34 07

What is the expected behavior? 期望的结果是什么?

Any additional comments? 相关环境信息?

  • ice.js Version:1.0.0
  • build.json Configuration:default
  • Node Version: v14
  • Platform: osx
@ClarkXia
Copy link
Collaborator

image
目前的确是通过域名的协议判断,这个需求我们评估下

@ClarkXia ClarkXia self-assigned this Apr 22, 2021
@ClarkXia ClarkXia added the hold label Apr 30, 2021
@hestudy
Copy link

hestudy commented Apr 29, 2022

可以写个vite插件暂时替换hmr配置

{
      name: 'config-vite-hmr',
      config: () => ({
        server: {
          hmr: {
            clientPort: 443,
          },
        },
      }),
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@ClarkXia @tarnishablec @hestudy and others