It would need to implement the `handle` hook. See https://svelte.dev/docs/kit/hooks#Server-hooks-handle https://github.com/simov/grant/issues/283 may link to some helpful details for implementing