Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare #194

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions .github/workflows/Deploy.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/sync.yml

This file was deleted.

14 changes: 6 additions & 8 deletions app/(main)/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Footer() {
return (
<footer className="mx-auto w-full max-w-5xl">
<section className="flex flex-col">
<p className="mt-3 flex gap-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
<div className="mt-3 flex gap-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
{t("p_146-598_Findthecodeon")}{" "}
<a
href="https://github.com/hamster1963/nezha-dash"
Expand All @@ -16,14 +16,12 @@ 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>
</p>
{version}
</p>
</div>
<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")}
{new Date().getFullYear()}{" "}
Expand Down
2 changes: 2 additions & 0 deletions app/(main)/page.tsx
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
2 changes: 2 additions & 0 deletions app/(main)/server/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
2 changes: 2 additions & 0 deletions app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { handlers } from "@/auth";

export const runtime = 'edge';

export const { GET, POST } = handlers;
2 changes: 2 additions & 0 deletions app/api/detail/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions app/api/monitor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions app/api/server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nezha-dash",
"version": "1.7.5",
"version": "v0-Cloudflare-Final",
"private": true,
"scripts": {
"dev": "next dev --turbopack -p 3040",
Expand Down Expand Up @@ -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"
Expand Down
Loading