From b13936abb878e0c45c86a6ad5a0fb41a40d83fae Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 23 Nov 2022 14:40:53 -0500 Subject: [PATCH] fix: page name bug --- packages/astro/src/core/build/static-build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 8078a7eefae6..d62db5f21ac1 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -141,7 +141,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp const pageInfo = internals.pagesByViteID.get(id); if (pageInfo) { // pages should go in their own chunks/pages/ directory - return `pages${pageInfo.route.pathname?.replace(/\/$/, '/index')}`; + return `pages${pageInfo.route.route.replace(/\/$/, '/index')}`; } }, },