From 32b81da43564b858908907586c28da47c8cff979 Mon Sep 17 00:00:00 2001 From: Yasser Lahbibi Date: Fri, 13 Oct 2023 10:50:11 +0200 Subject: [PATCH] fix: don't override integrity value --- src/runtime/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/cache.ts b/src/runtime/cache.ts index 9abc3342a1..9ffb5f348b 100644 --- a/src/runtime/cache.ts +++ b/src/runtime/cache.ts @@ -254,7 +254,7 @@ export function defineCachedEventHandler< return true; }, group: opts.group || "nitro/handlers", - integrity: hash([opts.integrity, handler]), + integrity: opts.integrity || hash(handler), }; const _cachedHandler = cachedFunction>(