Skip clean SSR output if page generation fails (#4526)

This commit is contained in:
Bjorn Lu 2022-08-29 23:59:25 +08:00 committed by GitHub
parent 2d2e38e473
commit 046bfd908d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Skip clean SSR output if page generation fails

View file

@ -96,11 +96,8 @@ Example:
timer.generate = performance.now();
if (astroConfig.output === 'static') {
try {
await generatePages(opts, internals);
} finally {
await cleanSsrOutput(opts);
}
await generatePages(opts, internals);
await cleanSsrOutput(opts);
} else {
// Inject the manifest
await injectManifest(opts, internals);