Skip to content

Let caddy wait for webpack dev server to be up

Warren Gifford requested to merge es/caddy-await-webpack into main

Created by: eseliger

Previously, for the first couple of seconds after starting the dev env, all requests would fail with 502 errors because the proxied to Webpack dev server isn't running yet. This config change gives it up to 60s to start up before the connection is closed with 502. NO MORE RELENTLESS SMASHING OF cmd + R. Do you agree this is better? Or can anyone think of any drawbacks of this method?

https://user-images.githubusercontent.com/19534377/132603443-8182aefe-ea71-4ade-a0a1-00c3b9c55f0f.mov

Merge request reports

Loading