mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: disable vercel cache
This commit is contained in:
parent
d4e1815234
commit
5540f56e5f
@ -1,7 +1,6 @@
|
||||
import { NetworkChartClient } from "../ClientComponents/NetworkChart";
|
||||
|
||||
export const dynamic = "force-dynamic"
|
||||
export const revalidate = 0
|
||||
|
||||
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
return (
|
||||
|
@ -37,8 +37,6 @@ export const viewport: Viewport = {
|
||||
userScalable: false,
|
||||
};
|
||||
|
||||
// optimization: force static for vercel
|
||||
export const dynamic = process.env.VERCEL ? "force-static" : "auto";
|
||||
|
||||
export async function generateStaticParams() {
|
||||
return locales.map((locale) => ({ locale }));
|
||||
|
Loading…
Reference in New Issue
Block a user