previewjs icon indicating copy to clipboard operation
previewjs copied to clipboard

waiting too long to access 'https://reactpreview.com' when preview the component

Open wen911119 opened this issue 4 years ago • 2 comments

Describe the bug

image image

I am a developer living in Shanghai, China. it takes too long to access 'https://reactpreview.com' when i preview the component. (may be affected by GFW)

Reproduction

See description

React Preview version

v0.7.1

System Info

System:
    OS: macOS 11.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 1.04 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.18.4 - ~/.nvm/versions/node/v12.18.4/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.4/bin/npm
  IDEs:
    Nano: 2.0.6 - /usr/bin/nano
    VSCode: 1.61.2 - /usr/local/bin/code
    Vim: 8.2 - /usr/bin/vim
    Xcode: 13.0/13A233 - /usr/bin/xcodebuild
  Browsers:
    Chrome: 95.0.4638.54
    Firefox: 89.0.2
    Safari: 15.0

Used Package Manager

yarn

Extension logs (useful for crashes)

No response

Preview logs (useful for rendering errors)

No response

Anything else?

No response

wen911119 avatar Oct 25 '21 10:10 wen911119

Thanks for reporting @wen911119!

This is an optional check used to see whether or not there's a newer version available, I could at least reduce the timeout to 5 seconds or so. Can you confirm that it works after 30 seconds?

This seems to indicate that Vercel (reactpreview.com's host) is blocked in China, something I didn't expect :(

fwouts avatar Oct 25 '21 11:10 fwouts

yes, it works after 30 seconds pending, i can also accelerate it by use a vpn. thanks for your working !

wen911119 avatar Oct 25 '21 12:10 wen911119