mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: edge
This commit is contained in:
parent
7a360204d1
commit
bc49460f75
@ -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");
|
||||
|
||||
|
@ -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 },
|
||||
}: {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user