Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby): Ensure publicPath is always relative for gatsby develop (#…
…11227) In `gatsby develop` we were setting `publicPath` for `webpack-dev-server` to an absolute url _constructed_ from the program host, port and protocol This is unnecessary and causes HMR and static links to break when viewed on a separate device over a network like in this screenshot below ![screenshot 2019-01-23 19 04 21](https://user-images.githubusercontent.com/7701981/51617923-3dbc2d80-1f53-11e9-86cf-d4c49ec18f42.png) This pull request fixes this by making the publicPath _always_ relative Fixes #11219 and #5801
- Loading branch information