vercel / serve

Static file serving and directory listing
https://npmjs.com/package/serve
MIT License
9.33k stars 685 forks source link

Update checker is delaying start when behind proxy server #558

Open MGraefe opened 4 years ago

MGraefe commented 4 years ago

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):

Thanks, Marius

heidemn commented 3 years ago

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

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