From 0586e20e8338e077b8eb1a3a96bdd19f5950c22f Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Mon, 18 Sep 2023 15:29:19 +0530 Subject: [PATCH] fix: redirect page type icon not properly displayed (#8579) --- .changeset/two-jeans-serve.md | 5 +++++ packages/astro/src/core/build/generate.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/two-jeans-serve.md diff --git a/.changeset/two-jeans-serve.md b/.changeset/two-jeans-serve.md new file mode 100644 index 000000000..8312b82b1 --- /dev/null +++ b/.changeset/two-jeans-serve.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +show redirect symbol as of the page diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 5dd6af021..02c78c8ae 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -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 {