- Next.js 16 App Router + TypeScript + Tailwind CSS 4 - Prisma/SQLite 기반 공지사항·자료실·관리자·문의/제보 - 네이버 블로그 RSS 최신 글 5개 노출 - OCI 운영 배포 스크립트 및 문서
20 lines
392 B
TypeScript
20 lines
392 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
import { SITE_URL } from "@/lib/constants";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const base = SITE_URL.replace(/\/$/, "");
|
|
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: ["/admin", "/admin/", "/api/"],
|
|
},
|
|
],
|
|
sitemap: `${base}/sitemap.xml`,
|
|
host: base,
|
|
};
|
|
}
|