fix: redirect page type icon not properly displayed (#8579)
This commit is contained in:
parent
6024955882
commit
0586e20e83
2 changed files with 9 additions and 1 deletions
5
.changeset/two-jeans-serve.md
Normal file
5
.changeset/two-jeans-serve.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
show redirect symbol as of the page
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue