fix: redirect page type icon not properly displayed (#8579)

This commit is contained in:
Rishi Raj Jain 2023-09-18 15:29:19 +05:30 committed by GitHub
parent 6024955882
commit 0586e20e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
show redirect symbol as of the page

View file

@ -297,7 +297,10 @@ async function generatePage(
mod: pageModule,
};
const icon = pageData.route.type === 'page' ? green('▶') : magenta('λ');
const icon =
pageData.route.type === 'page' || pageData.route.type === 'redirect'
? green('▶')
: magenta('λ');
if (isRelativePath(pageData.route.component)) {
logger.info(null, `${icon} ${pageData.route.route}`);
} else {