Skip to content

Commit

Permalink
fix: redirect page type icon not properly displayed (#8579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain authored Sep 18, 2023
1 parent 6024955 commit 0586e20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-jeans-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

show redirect symbol as of the page
5 changes: 4 additions & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0586e20

Please sign in to comment.