Skip to content

Instantly share code, notes, and snippets.

@imyjimmy
imyjimmy / PUBLIC_URL
Created May 22, 2019 15:43
How to get a React App to serve from PUBLIC_URL
npm install dotenv --save
## Note: this is how webpack is set up in fet/frontend.
## In case-dashboard it is more complex, but the tldr is use webpack-dev-server
## and have:
## devServer: {
## publicPath: publicUrl
## },
## see: https://webpack.js.org/configuration/dev-server/#devserverpublicpath-