From 45e5949a69707751b03b34d5d7cb8d1c7c1d87d3 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 20 Nov 2024 00:47:17 +0800 Subject: [PATCH] fix: cache --- app/(main)/ClientComponents/Global.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(main)/ClientComponents/Global.tsx b/app/(main)/ClientComponents/Global.tsx index c4d601c..b69abec 100644 --- a/app/(main)/ClientComponents/Global.tsx +++ b/app/(main)/ClientComponents/Global.tsx @@ -1,10 +1,10 @@ -"use server"; - import { GetNezhaData } from "@/lib/serverFetch"; import { ServerStackIcon } from "@heroicons/react/20/solid"; import DottedMap from "dotted-map"; import Link from "next/link"; +export const revalidate = 60 + interface GlobalProps { countries?: string[]; // 国家代码数组,如 ['CN', 'US'] }