Skip to content

Commit

Permalink
Await generatePages
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Mar 24, 2022
1 parent 030c302 commit e587f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function generatePages(result: RollupOutput, opts: StaticBuildOptio
const ssrEntry = await import(ssrEntryURL.toString());

for(const pageData of eachPageData(internals)) {
generatePage(opts, internals, pageData, ssrEntry);
await generatePage(opts, internals, pageData, ssrEntry);
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
output: {
format: 'esm',
entryFileNames: 'entry.mjs',
chunkFileNames: 'chunks/[name].[hash].mjs',
assetFileNames: 'assets/[name].[hash][extname]',
inlineDynamicImports: true,
},
},
// must match an esbuild target
Expand Down

0 comments on commit e587f9d

Please sign in to comment.