From c5991af0e71743cba37520132ec52ffef8f72b46 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:07:29 +0200 Subject: [PATCH] fix: build metrics on cloudflare pages --- pages/api/hello.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/api/hello.js b/pages/api/hello.js index aee21e9..9e009ae 100644 --- a/pages/api/hello.js +++ b/pages/api/hello.js @@ -3,3 +3,6 @@ export default function handler(req, res) { res.status(200).json({ name: "John Doe" }); } + +// https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes +export const runtime = 'edge';