fix: edge runtime

This commit is contained in:
hamster1963 2024-10-09 13:51:56 +08:00
parent 64a3c6cb97
commit 1cfc692a6c

View File

@ -2,6 +2,8 @@ import { ServerMonitorChart } from "@/app/[locale]/types/nezha-api";
import { GetServerMonitor } from "@/lib/serverFetch";
import { NextResponse } from "next/server";
export const runtime = 'edge';
interface NezhaDataResponse {
error?: string;
data?: ServerMonitorChart;