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:
Malar Kannan
2017-07-19 16:53:24 +05:30
parent 3cc73e5404
commit c6c8655649
9 changed files with 134 additions and 65 deletions

View File

@@ -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.

View File

@@ -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());