Skip to content

Commit

Permalink
fix: page name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Dec 5, 2022
1 parent 45dd862 commit b49be72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`;
}
},
},
Expand Down

0 comments on commit b49be72

Please sign in to comment.