fix(next) : allow blocking routes without loading fallbacks
CI / Verify (push) Successful in 1m7s
CI / Build immutable images and deploy (push) Successful in 2m45s

This commit is contained in:
2026-09-04 22:46:02 +07:00 Unverified
parent ced9b41737
commit 890b88d4f1
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ import { getCachedPublicGuide } from "@/lib/cache/public";
type Params = Promise<{ character: string; page: string }>;
export const instant = false;
export async function generateMetadata({ params }: { params: Params }): Promise<Metadata> {
await connection();
const { character } = await params;
+2
View File
@@ -7,6 +7,8 @@ import { getCachedPublicGuide } from "@/lib/cache/public";
type Params = Promise<{ character: string }>;
export const instant = false;
export async function generateMetadata({
params,
}: {
+2
View File
@@ -28,6 +28,8 @@ export const metadata: Metadata = {
description: "ไกด์ตัวละครจากช่องเกนชินไม่ใช่เกมมือถือ",
};
export const instant = false;
export default function RootLayout({ children }: LayoutProps<"/">) {
const deploymentId = process.env.NEXT_DEPLOYMENT_ID?.trim() || "development";
+2
View File
@@ -6,6 +6,8 @@ import { StructuredDirectory } from "@/components/public/structured-directory";
import { SiteHeader } from "@/components/public/site-header";
import { getCachedPublicGuideCards } from "@/lib/cache/public";
export const instant = false;
export default async function HomePage() {
await connection();
const guides = await getCachedPublicGuideCards();