fix: build metrics on cloudflare pages (#1)

This commit is contained in:
Slava 2025-01-27 17:59:38 +02:00 committed by GitHub
parent cae2523e10
commit 14785ecd3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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