Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Aug 16, 2023
1 parent 5e36d27 commit d7e3be5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/v7-edge-functions/functions/planetscale-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d7e3be5

Please sign in to comment.