Skip to content

Commit

Permalink
fix: add edge runtime to api route
Browse files Browse the repository at this point in the history
  • Loading branch information
bluenex committed May 12, 2024
1 parent 7462d04 commit 52f133e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/api/hello.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from "next";

type Data = {
Expand All @@ -11,3 +10,5 @@ export default function handler(
) {
res.status(200).json({ name: "John Doe" });
}

export const runtime = "edge";

0 comments on commit 52f133e

Please sign in to comment.