refactor: Update og route to use async function for GET request
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ImageResponse } from "next/og";
|
||||
import { NextRequest } from "next/server";
|
||||
|
||||
export default function handler(req: NextRequest) {
|
||||
export async function GET(req: NextRequest) {
|
||||
const { searchParams } = new URL(req.url);
|
||||
const title = searchParams.get("title");
|
||||
const logo = searchParams.get("logo");
|
||||
|
||||
Reference in New Issue
Block a user