UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

14 lines (11 loc) 566 B
import { FetcherOverrideForVercelEdgeHook } from "./custom/vercel-edge-fetcher.js"; import { Hooks } from "./types.js"; /* * This file is only ever generated once on the first generation and then is free to be modified. * Any hooks you wish to add should be registered in the initHooks function. Feel free to define them * in this file or in separate files in the hooks folder. */ export function initHooks(hooks: Hooks) { // Use a fetcher that works in Vercel Edge Runtime environments hooks.registerSDKInitHook(new FetcherOverrideForVercelEdgeHook()); }