fix: build metrics on cloudflare pages

This commit is contained in:
Slava 2025-01-27 13:07:29 +02:00
parent cae2523e10
commit c5991af0e7
No known key found for this signature in database
GPG Key ID: 351E7AA9BD0DFEB8

View File

@ -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';