feat : update
CI / Verify (push) Successful in 1m5s
CI / Build immutable images and deploy (push) Successful in 1m56s

This commit is contained in:
2026-09-03 19:15:10 +07:00 Unverified
parent 381ee216dd
commit 1b014d7c8f
8 changed files with 226 additions and 704 deletions
+1 -13
View File
@@ -3,11 +3,7 @@ import "server-only";
import { cacheLife, cacheTag } from "next/cache";
import { getPublicPage, listPublicCharacters } from "@/lib/content/queries";
import {
getPublicGuide,
getPublicTeamExport,
listGuideCards,
} from "@/lib/guides/queries";
import { getPublicGuide, listGuideCards } from "@/lib/guides/queries";
import {
characterCacheTag,
dataSourceCacheTag,
@@ -61,11 +57,3 @@ export async function getCachedPublicGuide(slug: string) {
if (result) cacheTag(pageCacheTag(result.id));
return result;
}
export async function getCachedPublicTeamExport(teamId: string) {
"use cache: remote";
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
const result = await getPublicTeamExport(teamId);
if (result) cacheTag(pageCacheTag(result.guideId));
return result;
}