diff --git a/src/use/@netlify/functions.ts b/src/use/@netlify/functions.ts index 4fa66780..5e863236 100644 --- a/src/use/@netlify/functions.ts +++ b/src/use/@netlify/functions.ts @@ -41,6 +41,7 @@ export function createHandler( // if body is null, return undefined body: body ?? undefined, statusCode: init.status, + headers: init.headers, }; } catch (err) { // The handler shouldnt throw errors.