• Wrap a server-only load function (e.g. +page.server.js or +layout.server.js) with Sentry functionality

    Usage:

    // +page.serverjs

    import { wrapServerLoadWithSentry }

    export const load = wrapServerLoadWithSentry((event) => {
    // your load code
    });

    Type Parameters

    • T extends ((...args) => any)

    Parameters

    • origServerLoad: T

      SvelteKit user defined server-only load function

    Returns T

Generated using TypeDoc