-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Describe the bug
If I have a prerender
function that errors...
// src/lib/data.remote.ts
import { prerender } from '$app/server';
export const oops = prerender(() => {
throw new Error('oops');
});
...I would expect that error to fail the build. Instead, the error gets serialized and the build continues.
Normally if a route fails to prerender, it results in the prerender.handleHttpError
function being called, which defaults to throwing an informative error. I'm not sure whether we want to reuse that function (perhaps with different values) or create a new one.
Reproduction
Logs
System Info
latest
Severity
annoyance
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels