(appPackageJson)
| 41 | // We can't use a relative path in HTML because we don't want to load something |
| 42 | // like /todos/42/static/js/bundle.7289d.js. We have to know the root. |
| 43 | function getServedPath(appPackageJson) { |
| 44 | const publicUrl = getPublicUrl(appPackageJson); |
| 45 | const servedUrl = |
| 46 | envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/'); |
| 47 | return ensureSlash(servedUrl, true); |
| 48 | } |
| 49 | |
| 50 | |
| 51 |
no test coverage detected