Files
jaengseung-made/next.config.ts
gahusb 4eee1b5c31 feat(ia): SaaS 제품 카탈로그(/packages) + 네비를 SaaS·음악·외주 3축으로 재편
- lib/saas-catalog.ts: 확장 가능한 SaaS 제품 데이터 모델(배열에 추가 시 자동 노출)
- app/packages: 카탈로그 페이지 — available 카드 그리드 / coming_soon / 빈 상태 예고+출시 알림 수집(ContactModal 재사용)
- TopNav·Footer: SaaS 제품(/packages)·AI 음악(/music)·커스텀 외주(/work) 3축
- 홈 Hero·라벨 카피를 새 정체성으로 정렬, 'Custom Build/사업부' 잔재 정리
- sitemap에 /packages 등록, STRATEGY.md에 크몽·숨고 미사용+인스타 유입 정책 명시
- 음악은 카탈로그에 넣지 않고 단품 라인(/music) 유지

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 16:08:28 +09:00

54 lines
2.1 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async headers() {
return [
{
source: "/:path*",
headers: [
{ key: "X-Frame-Options", value: "DENY" },
{ key: "X-Content-Type-Options", value: "nosniff" },
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
{ key: "X-XSS-Protection", value: "1; mode=block" },
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "Permissions-Policy",
value: "camera=(), microphone=(), geolocation=()",
},
],
},
{
source: "/api/:path*",
headers: [
{ key: "Cache-Control", value: "no-store, max-age=0" },
{ key: "X-Frame-Options", value: "DENY" },
],
},
];
},
async redirects() {
return [
// Music 사업부 마이그
{ source: '/services/music', destination: '/music/packs', permanent: true },
{ source: '/services/music/samples', destination: '/music/samples', permanent: true },
{ source: '/studio', destination: '/music/studio', permanent: true },
// 커스텀 외주 마이그
{ source: '/freelance', destination: '/work/freelance', permanent: true },
{ source: '/services/website', destination: '/work/website', permanent: true },
{ source: '/services/website/samples/:slug', destination: '/work/website/samples/:slug', permanent: true },
// 블로그 자동화 폐기(2026-05-29 재정의): 기존 URL은 제품 라인 허브로 안내
{ source: '/services/blog', destination: '/work', permanent: true },
{ source: '/work/blog', destination: '/work', permanent: true },
// 사주 마이그 (단순 URL, 카탈로그 spec은 보류)
{ source: '/saju', destination: '/work/saju', permanent: true },
{ source: '/saju/input', destination: '/work/saju/input', permanent: true },
{ source: '/saju/result', destination: '/work/saju/result', permanent: true },
];
},
};
export default nextConfig;