1. refactored to use get/set instead of raw lens
2. updated webpack dev config to use python proxy api server
This commit is contained in:
@@ -17,6 +17,7 @@ const getClientEnvironment = require('./env');
|
||||
const paths = require('./paths');
|
||||
// Webpack uses `publicPath` to determine where the app is being served from.
|
||||
// It requires a trailing slash, or the file assets will get an incorrect path.
|
||||
// const publicPath = 'http://localhost:3000/';
|
||||
const publicPath = paths.servedPath;
|
||||
// Some apps do not use client-side routing with pushState.
|
||||
// For these, "homepage" can be set to "." to enable relative asset paths.
|
||||
|
||||
@@ -77,7 +77,9 @@ module.exports = function(proxy, allowedHost) {
|
||||
disableDotRule: true,
|
||||
},
|
||||
public: allowedHost,
|
||||
proxy,
|
||||
proxy: {
|
||||
"/api":"http://localhost:5000/"
|
||||
},
|
||||
setup(app) {
|
||||
// This lets us open files from the runtime error overlay.
|
||||
app.use(errorOverlayMiddleware());
|
||||
|
||||
Reference in New Issue
Block a user