Skip to content

Commit

Permalink
fix: appease typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Oct 18, 2023
1 parent db15d59 commit 6636df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/plugins/plugin-prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function vitePluginPrerender(opts: StaticBuildOptions, internals: BuildInternals
if (pageInfo) {
// prerendered pages should be split into their own chunk
// Important: this can't be in the `pages/` directory!
if (getPrerenderMetadata(meta.getModuleInfo(id))) {
if (getPrerenderMetadata(meta.getModuleInfo(id)!)) {
pageInfo.route.prerender = true;
return 'prerender';
}
Expand Down

0 comments on commit 6636df2

Please sign in to comment.