From 51cf7295a1dc6591c8b3246eaf6655b51fc77a46 Mon Sep 17 00:00:00 2001 From: mayuriphad Date: Thu, 29 Oct 2026 10:55:53 +0530 Subject: [PATCH] fix(deps): declare h3 as a runtime dependency The server runtime imports from h3 without declaring it, so under pnpm it resolves to whatever h3 the app hoists. With h3 v2 hoisted, getRequestHeader fails with "event.req.headers.get is not a function". Resolves #651 Signed-off-by: mayuriphad --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index c4123554..4214b08d 100755 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "@supabase/ssr": "^0.12.7", "@supabase/supabase-js": "^2.118.0", "defu": "^6.1.7", + "h3": "^1.15.11", "pathe": "^2.0.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e0d45321..0613d34f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -178,6 +178,9 @@ importers: defu: specifier: ^6.1.7 version: 6.1.7 + h3: + specifier: ^1.15.11 + version: 1.15.11 pathe: specifier: ^2.0.3 version: 2.0.3