Skip clean SSR output if page generation fails (#4526)
This commit is contained in:
parent
2d2e38e473
commit
046bfd908d
2 changed files with 7 additions and 5 deletions
5
.changeset/nine-beans-divide.md
Normal file
5
.changeset/nine-beans-divide.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Skip clean SSR output if page generation fails
|
|
@ -96,11 +96,8 @@ Example:
|
||||||
|
|
||||||
timer.generate = performance.now();
|
timer.generate = performance.now();
|
||||||
if (astroConfig.output === 'static') {
|
if (astroConfig.output === 'static') {
|
||||||
try {
|
await generatePages(opts, internals);
|
||||||
await generatePages(opts, internals);
|
await cleanSsrOutput(opts);
|
||||||
} finally {
|
|
||||||
await cleanSsrOutput(opts);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Inject the manifest
|
// Inject the manifest
|
||||||
await injectManifest(opts, internals);
|
await injectManifest(opts, internals);
|
||||||
|
|
Loading…
Reference in a new issue