Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created May 14, 2018 09:52
Show Gist options
  • Save ohadlevy/44bdb8804477f37324f6122bd54d8d75 to your computer and use it in GitHub Desktop.
Save ohadlevy/44bdb8804477f37324f6122bd54d8d75 to your computer and use it in GitHub Desktop.
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 596ad044a..3db5756ae 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -15,7 +15,7 @@ var vendorEntry = require('./webpack.vendor');
module.exports = env => {
// must match config.webpack.dev_server.port
- var devServerPort = 3808;
+ var devServerPort = 3000;
// set TARGETNODE_ENV=production on the environment to add asset fingerprints
var production =
@@ -180,7 +180,10 @@ module.exports = env => {
host: process.env.BIND || 'localhost',
port: devServerPort,
headers: { 'Access-Control-Allow-Origin': '*' },
- hot: true
+ hot: true,
+ proxy: {
+ "/": "http://localhost:5000"
+ }
};
// Source maps
config.devtool = 'inline-source-map';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment