From 34d1ca31de85ee6e3dc75a0e6dd5681786cad61a Mon Sep 17 00:00:00 2001 From: Juan M Date: Thu, 2 May 2024 11:13:33 -0300 Subject: [PATCH 1/2] Event not found in function --- netlify/edge-functions/event.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/netlify/edge-functions/event.js b/netlify/edge-functions/event.js index a3855f2..bbebf20 100644 --- a/netlify/edge-functions/event.js +++ b/netlify/edge-functions/event.js @@ -39,6 +39,15 @@ export default async function handler(request, context) { }) } + if (eventInfo == null) { + return new Response(html, { + status: 404, + headers: { + 'content-type': 'text/html', + }, + }) + } + return new Response( appendFrame( replaceMeta( From 3b3be780afa52b367b9bede14adc9d2c67b184db Mon Sep 17 00:00:00 2001 From: Juan M Date: Thu, 2 May 2024 11:14:58 -0300 Subject: [PATCH 2/2] Version 1.12.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e8bdf10..024339b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/poap-family", - "version": "1.12.6", + "version": "1.12.7", "author": { "name": "POAP", "url": "https://poap.xyz"