resolveSiteFile
resolveSiteFile(
site,roots):Promise<string>
Defined in: resolveSiteFiles.ts:96
Find the sites/<site>.site-meta.xml file for a CustomSite API name.
Parameters
Section titled “Parameters”string
The CustomSite API name (the basename of the site file, without its extension).
string[]
Root directories to search, from resolveSearchRoots.
Returns
Section titled “Returns”Promise<string>
The absolute path to the matched site file.
Throws
Section titled “Throws”CommunityUrlSiteFileNotFoundError if no file matches.
Throws
Section titled “Throws”CommunityUrlSiteFileAmbiguousError if more than one file matches.