Skip to content

Commit

Permalink
Merge pull request #284 from halfzebra/fix-proxied-public-folder
Browse files Browse the repository at this point in the history
fix(start): Exclude public/ stuff from being proxied.
  • Loading branch information
halfzebra authored Sep 4, 2018
2 parents 8a6ea83 + 816d342 commit 3e1e658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ choosePort(HOST, DEFAULT_PORT)
const compiler = createCompiler(webpack, config, appName, urls);
// Load proxy config
const proxySetting = require(paths.elmJson).proxy;
const proxyConfig = prepareProxy(proxySetting, '/');
console.log(proxySetting);
process.exit(0);
const proxyConfig = prepareProxy(proxySetting, paths.appPublic);
// Serve webpack assets generated by the compiler over a web sever.
const serverConfig = createDevServerConfig(
proxyConfig,
Expand Down

0 comments on commit 3e1e658

Please sign in to comment.