serve
serve copied to clipboard
Update checker is delaying start when behind proxy server
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 have you looked at the code? This should work:
- Bash:
NO_UPDATE_CHECK=1 npx serve [options...] - Windows Cmd:
set NO_UPDATE_CHECK=1npx serve [options...]
https://github.com/vercel/serve/blob/master/bin/serve.js#L400