feat : 6 astra improve it
CI / Verify and audit (push) Successful in 2m33s
CI / Build, scan and deploy immutable images (push) Failing after 1m29s

This commit is contained in:
2026-09-22 18:28:18 +07:00 Unverified
parent 88afa8e947
commit 87e6bcd96f
56 changed files with 1351 additions and 511 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { notFound } from "next/navigation";
import { GoogleAdsense } from "@/components/public/google-adsense";
import { publicSections, StructuredGuideShell } from "@/components/public/structured-guide";
import { getCachedPublicGuide } from "@/lib/cache/public";
import { getCachedPublicGuide, getCachedPublicGuideSummary } from "@/lib/cache/public";
type Params = Promise<{ character: string; page: string }>;
@@ -11,7 +11,7 @@ export const instant = false;
export async function generateMetadata({ params }: { params: Params }): Promise<Metadata> {
const { character } = await params;
const guide = await getCachedPublicGuide(character);
const guide = await getCachedPublicGuideSummary(character);
return guide
? {
title: `${guide.name}`,
@@ -24,7 +24,7 @@ export async function generateMetadata({ params }: { params: Params }): Promise<
export default async function GuideSectionPage({ params }: { params: Params }) {
const { character, page } = await params;
const guide = await getCachedPublicGuide(character);
const guide = await getCachedPublicGuide(character, page);
if (!guide || !publicSections(guide).some((section) => section.slug === page)) notFound();
return (
<>
+2 -2
View File
@@ -3,7 +3,7 @@ import { notFound } from "next/navigation";
import { GoogleAdsense } from "@/components/public/google-adsense";
import { StructuredGuideShell } from "@/components/public/structured-guide";
import { getCachedPublicGuide } from "@/lib/cache/public";
import { getCachedPublicGuide, getCachedPublicGuideSummary } from "@/lib/cache/public";
type Params = Promise<{ character: string }>;
@@ -14,7 +14,7 @@ export async function generateMetadata({
}: {
params: Params;
}): Promise<Metadata> {
const guide = await getCachedPublicGuide((await params).character);
const guide = await getCachedPublicGuideSummary((await params).character);
return guide
? {
title: `${guide.name}`,