[ci] yarn format

This commit is contained in:
FredKSchott 2021-07-20 01:42:33 +00:00 committed by GitHub Actions
parent 40c882a253
commit 3153306953
2 changed files with 5 additions and 2 deletions

View file

@ -91,7 +91,10 @@ export async function buildCollectionPage({ astroConfig, filepath, runtime, site
/** Build static page */
export async function buildStaticPage({ astroConfig, buildState, filepath, runtime }: PageBuildOptions): Promise<void> {
const { pages: pagesRoot } = astroConfig;
const url = filepath.pathname.replace(pagesRoot.pathname, '/').replace(/.(astro|md)$/, '').replace(/\/index$/, '/');
const url = filepath.pathname
.replace(pagesRoot.pathname, '/')
.replace(/.(astro|md)$/, '')
.replace(/\/index$/, '/');
const result = await runtime.load(url);
if (result.statusCode !== 200) {
let err = (result as any).error;