Skip to content

resolveSiteFile

resolveSiteFile(site, roots): Promise<string>

Defined in: resolveSiteFiles.ts:96

Find the sites/<site>.site-meta.xml file for a CustomSite API name.

string

The CustomSite API name (the basename of the site file, without its extension).

string[]

Root directories to search, from resolveSearchRoots.

Promise<string>

The absolute path to the matched site file.

CommunityUrlSiteFileNotFoundError if no file matches.

CommunityUrlSiteFileAmbiguousError if more than one file matches.