Skip to content

Commit

Permalink
fix: bundle all pages into a single chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Jan 10, 2023
1 parent d72f929 commit 754a3d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/build/vite-plugin-prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function vitePluginPrerender(
if (api.getModuleInfo(id)?.meta.astro?.pageOptions?.prerender) {
return `prerender`;
}
// pages should go in their own chunks/pages/* directory
return `pages${pageInfo.route.route.replace(/\/$/, '/index')}`;
// dynamic pages should all go in their own chunk in the pages/* directory
return `pages/all`;
}
};
},
Expand Down

0 comments on commit 754a3d5

Please sign in to comment.