Compare commits

...

3 Commits

Author SHA1 Message Date
hamster1963
2f04cceb1d v0-Cloudflare-Final 2024-12-12 16:40:34 +08:00
hamster1963
724e76c815 fix: edge runtime 2024-12-12 16:28:51 +08:00
hamster1963
10b3569e3a v1.7.5-fix 2024-12-12 16:23:16 +08:00
11 changed files with 22 additions and 8 deletions

View File

@ -16,13 +16,11 @@ export default function Footer() {
>
{t("a_303-585_GitHub")}
</a>
<a
href={`https://github.com/hamster1963/nezha-dash/releases/tag/v${version}`}
target="_blank"
className="cursor-pointer font-normal underline decoration-yellow-500 hover:decoration-yellow-600 transition-colors decoration-2 underline-offset-2 dark:decoration-yellow-500/60 dark:hover:decoration-yellow-500/80"
<p
className="font-normal"
>
v{version}
</a>
{version}
</p>
</p>
<section className="mt-1 flex items-center gap-2 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
{t("section_607-869_2020")}

View File

@ -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">

View File

@ -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"];

View File

@ -1,3 +1,5 @@
import { handlers } from "@/auth";
export const runtime = 'edge';
export const { GET, POST } = handlers;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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",

View File

@ -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 (

BIN
bun.lockb

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "nezha-dash",
"version": "1.7.5",
"version": "v0-Cloudflare-Final",
"private": true,
"scripts": {
"dev": "next dev --turbopack -p 3040",
@ -51,7 +51,7 @@
"react-wrap-balancer": "^1.1.1",
"recharts": "^2.14.1",
"sharp": "^0.33.5",
"swr": "^2.2.6-beta.4",
"swr": "^2.2.6-beta.5",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
"typescript-eslint": "^8.17.0"