feat(visibility): 사주·음악·설문·패키지 라우트 숨김 가드 적용

This commit is contained in:
2026-06-11 01:35:46 +09:00
parent 281edd9a52
commit b13ddd3841
4 changed files with 18 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
import { notFound } from 'next/navigation';
import type { Metadata } from 'next';
import { isServiceVisible } from '@/lib/service-visibility';
export const metadata: Metadata = {
title: 'AI 사주 분석',
@@ -22,6 +24,7 @@ export const metadata: Metadata = {
},
};
export default function SajuLayout({ children }: { children: React.ReactNode }) {
return children;
export default async function SajuLayout({ children }: { children: React.ReactNode }) {
if (!(await isServiceVisible('saju'))) notFound();
return <>{children}</>;
}