Skip to content

Commit edb5adf

Browse files
committed
fix getServedUrl in config
1 parent 0ac1539 commit edb5adf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

config/paths.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ const getPublicUrl = appPackageJson =>
3232
// We can't use a relative path in HTML because we don't want to load something
3333
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
3434
function getServedPath(appPackageJson) {
35-
const publicUrl = getPublicUrl(appPackageJson);
36-
const servedUrl =
37-
envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/');
38-
return ensureSlash(servedUrl, true);
35+
return '';
3936
}
4037

4138
// config after eject: we're in ./config/

0 commit comments

Comments
 (0)