MCPcopy Index your code
hub / github.com/remy/jsconsole / getServedPath

Function getServedPath

config/paths.js:34–39  ·  view source on GitHub ↗
(appPackageJson)

Source from the content-addressed store, hash-verified

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.
34function 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/
42module.exports = {

Callers 1

paths.jsFile · 0.85

Calls 2

getPublicUrlFunction · 0.85
ensureSlashFunction · 0.85

Tested by

no test coverage detected