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 { useTranslations } from "next-intl";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function Page({ params }: { params: { id: string } }) {
|
export default function Page({ params }: { params: { id: string } }) {
|
||||||
const t = useTranslations("TabSwitch");
|
const t = useTranslations("TabSwitch");
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@ import ServerList from "@/components/ServerList";
|
|||||||
import ServerOverview from "@/components/ServerOverview";
|
import ServerOverview from "@/components/ServerOverview";
|
||||||
import { unstable_setRequestLocale } from "next-intl/server";
|
import { unstable_setRequestLocale } from "next-intl/server";
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function Home({
|
export default function Home({
|
||||||
params: { locale },
|
params: { locale },
|
||||||
}: {
|
}: {
|
||||||
|
@ -3,6 +3,7 @@ import { GetServerDetail } from "@/lib/serverFetch";
|
|||||||
import { NextResponse } from "next/server";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
interface NezhaDataResponse {
|
interface NezhaDataResponse {
|
||||||
error?: string;
|
error?: string;
|
||||||
|
@ -3,6 +3,7 @@ import { GetServerMonitor } from "@/lib/serverFetch";
|
|||||||
import { NextResponse } from "next/server";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
interface NezhaDataResponse {
|
interface NezhaDataResponse {
|
||||||
error?: string;
|
error?: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user