mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: edge runtime
This commit is contained in:
parent
10b3569e3a
commit
724e76c815
@ -1,6 +1,8 @@
|
||||
import ServerList from "@/components/ServerList";
|
||||
import ServerOverview from "@/components/ServerOverview";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default async function Home() {
|
||||
return (
|
||||
<div className="mx-auto grid w-full max-w-5xl gap-4 md:gap-6">
|
||||
|
@ -7,6 +7,8 @@ import TabSwitch from "@/components/TabSwitch";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import { use, useState } from "react";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default function Page(props: { params: Promise<{ id: string }> }) {
|
||||
const params = use(props.params);
|
||||
const tabs = ["Detail", "Network"];
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { handlers } from "@/auth";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export const { GET, POST } = handlers;
|
||||
|
@ -6,6 +6,8 @@ import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface ResError extends Error {
|
||||
statusCode: number;
|
||||
message: string;
|
||||
|
@ -6,6 +6,8 @@ import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface ResError extends Error {
|
||||
statusCode: number;
|
||||
message: string;
|
||||
|
@ -6,6 +6,8 @@ import { NextResponse } from "next/server";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface ResError extends Error {
|
||||
statusCode: number;
|
||||
message: string;
|
||||
|
@ -15,6 +15,8 @@ import { ThemeProvider } from "next-themes";
|
||||
import { Inter as FontSans } from "next/font/google";
|
||||
import React from "react";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
|
@ -4,6 +4,8 @@ import Link from "next/link";
|
||||
import Footer from "./(main)/footer";
|
||||
import Header from "./(main)/header";
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default function NotFoundPage() {
|
||||
const t = useTranslations("NotFoundPage");
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user