mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
api cache
This commit is contained in:
@@ -4,6 +4,8 @@ import Layout from "@/components/Layout";
|
||||
import TournamentTable from "@/components/TournamentTable";
|
||||
import { dateOrderingFrance } from "@/utils/dbDateOrdering";
|
||||
|
||||
export const revalidate = 86400; // cache for 24 hours
|
||||
|
||||
/**
|
||||
* Imports the tournament map component, ensuring CSR only.
|
||||
* @remarks SSR is not supported by react-leaflet
|
||||
@@ -17,8 +19,6 @@ const TournamentMap = dynamic(() => import("@/components/TournamentMap"), {
|
||||
),
|
||||
});
|
||||
|
||||
export const revalidate = 86400; // cache for 24 hours
|
||||
|
||||
const getTournaments = async () => {
|
||||
try {
|
||||
const client = await clientPromise;
|
||||
|
||||
Reference in New Issue
Block a user