CHORE(merge): merge from develop
- Initial setup and all features from develop branch - Includes: auth, deploy, docker, style fixes - K3S deployment configuration
This commit is contained in:
94
nextjs/app/sitemap.ts
Normal file
94
nextjs/app/sitemap.ts
Normal file
@@ -0,0 +1,94 @@
|
||||
import { MetadataRoute } from 'next'
|
||||
|
||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
const baseUrl = 'https://www.disciples-church.com'
|
||||
|
||||
// 정적 페이지들
|
||||
const staticPages = [
|
||||
{
|
||||
url: baseUrl,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'weekly' as const,
|
||||
priority: 1,
|
||||
},
|
||||
// 교회 소개
|
||||
{
|
||||
url: `${baseUrl}/greeting`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/vision`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/leaders`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.7,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/directions`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.7,
|
||||
},
|
||||
// 예배
|
||||
{
|
||||
url: `${baseUrl}/worship`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'weekly' as const,
|
||||
priority: 0.9,
|
||||
},
|
||||
// 다음세대
|
||||
{
|
||||
url: `${baseUrl}/generation`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
},
|
||||
// 제자화
|
||||
{
|
||||
url: `${baseUrl}/system`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
},
|
||||
// 선교
|
||||
{
|
||||
url: `${baseUrl}/mission`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly' as const,
|
||||
priority: 0.8,
|
||||
},
|
||||
// 소식
|
||||
{
|
||||
url: `${baseUrl}/announcements`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'daily' as const,
|
||||
priority: 0.9,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/gallery`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'weekly' as const,
|
||||
priority: 0.7,
|
||||
},
|
||||
]
|
||||
|
||||
// 동적 페이지들 (공지사항, 갤러리 등)을 여기에 추가할 수 있습니다
|
||||
// 예시:
|
||||
// const announcements = await fetchAnnouncements()
|
||||
// const announcementPages = announcements.map((announcement) => ({
|
||||
// url: `${baseUrl}/announcements/${announcement.id}`,
|
||||
// lastModified: announcement.updatedAt,
|
||||
// changeFrequency: 'weekly' as const,
|
||||
// priority: 0.6,
|
||||
// }))
|
||||
|
||||
return [...staticPages]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user