Skip to content

Instantly share code, notes, and snippets.

@mamboer
Created November 29, 2023 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamboer/669f322a581f665e2c34713fc4dbec86 to your computer and use it in GitHub Desktop.
Save mamboer/669f322a581f665e2c34713fc4dbec86 to your computer and use it in GitHub Desktop.
Pandafan 每隔 60 秒刷新本地开发的页面

背景

Mac 电脑,本地跑了一个 react app(http://localhost:3000) host 配置 prompt-dev.com, 指向 127.0.0.1 nginx 配置 prompt-dev.com 做了反向代理,指向 react app 的端口。

结果

浏览器访问 prompt-dev.com 的时候,每隔 60 秒刷新一次页面。

解决办法

将 app.dev 域名添加到 pandafan 的白名单(设置->代理规则->域名模式)中。

image

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