feat(image-export) : capture guide sections in browser
CI / Verify (push) Successful in 58s
CI / Build immutable images and deploy (push) Successful in 2m54s

This commit is contained in:
2026-09-02 22:28:28 +07:00 Unverified
parent ded10ebb36
commit dd672e5331
6 changed files with 272 additions and 1266 deletions
-18
View File
@@ -4,10 +4,8 @@ import { cacheLife, cacheTag } from "next/cache";
import { getPublicPage, listPublicCharacters } from "@/lib/content/queries";
import {
getPublicArtifactExport,
getPublicGuide,
getPublicTeamExport,
getPublicWeaponExport,
listGuideCards,
} from "@/lib/guides/queries";
import {
@@ -71,19 +69,3 @@ export async function getCachedPublicTeamExport(teamId: string) {
if (result) cacheTag(pageCacheTag(result.guideId));
return result;
}
export async function getCachedPublicWeaponExport(guideId: string) {
"use cache: remote";
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
const result = await getPublicWeaponExport(guideId);
cacheTag(pageCacheTag(guideId));
return result;
}
export async function getCachedPublicArtifactExport(guideId: string) {
"use cache: remote";
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
const result = await getPublicArtifactExport(guideId);
cacheTag(pageCacheTag(guideId));
return result;
}