Skip to content

Commit 6c31098

Browse files
authored
Files in public/ folder should not be requested through proxy (facebook#2326)
1 parent 722b86d commit 6c31098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ choosePort(HOST, DEFAULT_PORT)
6666
const compiler = createCompiler(webpack, config, appName, urls, useYarn);
6767
// Load proxy config
6868
const proxySetting = require(paths.appPackageJson).proxy;
69-
const proxyConfig = prepareProxy(proxySetting);
69+
const proxyConfig = prepareProxy(proxySetting, paths.appPublic);
7070
// Serve webpack assets generated by the compiler over a web sever.
7171
const serverConfig = createDevServerConfig(
7272
proxyConfig,

0 commit comments

Comments
 (0)