fix: edge

This commit is contained in:
hamster1963 2024-10-21 00:17:41 +08:00
parent 7a360204d1
commit bc49460f75
4 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import { Separator } from "@/components/ui/separator";
import { useTranslations } from "next-intl";
import { useState } from "react";
export const runtime = 'edge';
export default function Page({ params }: { params: { id: string } }) {
const t = useTranslations("TabSwitch");

View File

@ -2,6 +2,8 @@ import ServerList from "@/components/ServerList";
import ServerOverview from "@/components/ServerOverview";
import { unstable_setRequestLocale } from "next-intl/server";
export const runtime = 'edge';
export default function Home({
params: { locale },
}: {

View File

@ -3,6 +3,7 @@ import { GetServerDetail } from "@/lib/serverFetch";
import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
export const runtime = 'edge';
interface NezhaDataResponse {
error?: string;

View File

@ -3,6 +3,7 @@ import { GetServerMonitor } from "@/lib/serverFetch";
import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
export const runtime = 'edge';
interface NezhaDataResponse {
error?: string;