serve icon indicating copy to clipboard operation
serve copied to clipboard

Update checker is delaying start when behind proxy server

Open MGraefe opened this issue 6 years ago • 2 comments

In my company I am behind a proxy server which causes the update check to fail after a timeout interval. Serve doesn't seem to properly start until the update check is done, so I always have to wait 30 seconds or so until Serve actually serves my directory which is very annoying. Would be nice if you could implement one of the following options (first one preferred the most):

  • The update check doesn't delay the start of the application, even if it times out
  • Serve doesn't check for updates by default
  • There is a command line option that disables the update check

Thanks, Marius

MGraefe avatar Sep 20 '19 08:09 MGraefe

@MGraefe have you looked at the code? This should work:

  • Bash: NO_UPDATE_CHECK=1 npx serve [options...]
  • Windows Cmd: set NO_UPDATE_CHECK=1 npx serve [options...]

https://github.com/vercel/serve/blob/master/bin/serve.js#L400

heidemn avatar Jun 03 '21 00:06 heidemn