Skip to content

Commit da1e331

Browse files
static works as well, thought it would get confused with the bundle path
1 parent a916bb6 commit da1e331

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if (publicPath === './') {
3131
// `publicUrl` is just like `publicPath`, but we will provide it to our app
3232
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
3333
// Omit trailing slash as %PUBLIC_PATH%/xyz looks better than %PUBLIC_PATH%xyz.
34-
const publicUrl = paths.servedPath.slice(0, -1) + '/assets';
34+
const publicUrl = paths.servedPath.slice(0, -1) + '/static';
3535
// Get environment variables to inject into our app.
3636
const env = getClientEnvironment(publicUrl === '.' ? '' : publicUrl);
3737
// This is the development configuration.

packages/react-scripts/config/webpackDevServer.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = function(proxy, allowedHost) {
106106
app.use(noopServiceWorkerMiddleware(servedPathPathname));
107107
app.use(serveAppMiddleware(servedPathPathname));
108108
app.use(
109-
`${config.output.publicPath.slice(0, -1)}/assets`,
109+
`${config.output.publicPath.slice(0, -1)}/static`,
110110
express.static(paths.appPublic)
111111
);
112112
},

0 commit comments

Comments
 (0)