(appPackageJson)
| 32 | // We can't use a relative path in HTML because we don't want to load something |
| 33 | // like /todos/42/static/js/bundle.7289d.js. We have to know the root. |
| 34 | function getServedPath(appPackageJson) { |
| 35 | const publicUrl = getPublicUrl(appPackageJson); |
| 36 | const servedUrl = |
| 37 | envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/'); |
| 38 | return ensureSlash(servedUrl, true); |
| 39 | } |
| 40 | |
| 41 | // config after eject: we're in ./config/ |
| 42 | module.exports = { |
no test coverage detected