Skip to content

Commit 3e1e658

Browse files
authored
Merge pull request #284 from halfzebra/fix-proxied-public-folder
fix(start): Exclude public/ stuff from being proxied.
2 parents 8a6ea83 + 816d342 commit 3e1e658

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/start.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ choosePort(HOST, DEFAULT_PORT)
160160
const compiler = createCompiler(webpack, config, appName, urls);
161161
// Load proxy config
162162
const proxySetting = require(paths.elmJson).proxy;
163-
const proxyConfig = prepareProxy(proxySetting, '/');
163+
console.log(proxySetting);
164+
process.exit(0);
165+
const proxyConfig = prepareProxy(proxySetting, paths.appPublic);
164166
// Serve webpack assets generated by the compiler over a web sever.
165167
const serverConfig = createDevServerConfig(
166168
proxyConfig,

0 commit comments

Comments
 (0)