Skip to content

Commit 67b94ef

Browse files
committed
handle http prerender error
1 parent 2fd7bcc commit 67b94ef

File tree

1 file changed

+5
-0
lines changed
  • dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages

1 file changed

+5
-0
lines changed

dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/svelte.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const config = {
1212
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1313
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
1414
adapter: adapter(),
15+
prerender: {
16+
handleHttpError: err => {
17+
console.log(JSON.stringify(err, null, 2));
18+
},
19+
},
1520
},
1621
};
1722

0 commit comments

Comments
 (0)