Documentation / @etherfold/core / publishedBodyLocation
Function: publishedBodyLocation() ​
publishedBodyLocation(
indexLocation,body):string
Defined in: packages/core/src/publication.ts:135
WHERE A BODY THE INDEX NAMES IS, given where the index was read from.
A body is named RELATIVE to its index, so a publication directory can be served from any host or path, including a build-embedded, hostless relative one (/indexed-states/publication.json), which is resolved by replacing the index's own file name rather than through URL (which would need a base the location does not carry).
Parameters ​
indexLocation ​
string
body ​
string
Returns ​
string