From d7e3be5a01c928a6136fbf52f0018785fde933d9 Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Wed, 16 Aug 2023 10:41:21 -0400 Subject: [PATCH] WIP --- examples/v7-edge-functions/functions/planetscale-database.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/v7-edge-functions/functions/planetscale-database.js b/examples/v7-edge-functions/functions/planetscale-database.js index 4310d16f2..5f9f3e61f 100644 --- a/examples/v7-edge-functions/functions/planetscale-database.js +++ b/examples/v7-edge-functions/functions/planetscale-database.js @@ -28,6 +28,8 @@ export async function handleHttpRequest(request, context) { // message: `Total number of records: ${totalCount}`, // }); + context.geo = JSON.parse(JSON.stringify(context.geo)); + const response = new Response(context.geo.country, { headers: { 'content-type': 'application/json; charset=utf-8',