diff --git a/app/gyeol/layout.tsx b/app/gyeol/layout.tsx
index 12d040f..70ceb5c 100644
--- a/app/gyeol/layout.tsx
+++ b/app/gyeol/layout.tsx
@@ -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: 'CONTOUR — 나를 더 선명하게 이해하는 3분',
@@ -22,7 +24,8 @@ export const metadata: Metadata = {
},
};
-export default function GyeolLayout({ children }: { children: React.ReactNode }) {
+export default async function GyeolLayout({ children }: { children: React.ReactNode }) {
+ if (!(await isServiceVisible('gyeol'))) notFound();
return (
{children}>;
}
diff --git a/app/packages/layout.tsx b/app/packages/layout.tsx
index 5b1e30c..22b86b5 100644
--- a/app/packages/layout.tsx
+++ b/app/packages/layout.tsx
@@ -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: 'SaaS 제품 · 월 구독 패키지',
@@ -13,6 +15,7 @@ export const metadata: Metadata = {
},
};
-export default function PackagesLayout({ children }: { children: React.ReactNode }) {
- return children;
+export default async function PackagesLayout({ children }: { children: React.ReactNode }) {
+ if (!(await isServiceVisible('packages'))) notFound();
+ return <>{children}>;
}
diff --git a/app/work/saju/layout.tsx b/app/work/saju/layout.tsx
index 860fa23..11e1511 100644
--- a/app/work/saju/layout.tsx
+++ b/app/work/saju/layout.tsx
@@ -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}>;
}