.
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 1m53s

This commit is contained in:
ParkWonYeop
2025-12-29 01:21:14 +09:00
parent 1c90b0bf3d
commit 024c723567

View File

@@ -40,7 +40,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const postRoutes = posts.map((post: any) => ({ const postRoutes = posts.map((post: any) => ({
// 🛠️ 핵심 수정: slug를 encodeURIComponent로 감싸서 특수문자(&, 한글 등)를 안전하게 처리합니다. // 🛠️ 핵심 수정: slug를 encodeURIComponent로 감싸서 특수문자(&, 한글 등)를 안전하게 처리합니다.
url: `${baseUrl}/posts/${encodeURIComponent(post.slug)}`, url: `${baseUrl}/posts/${encodeURIComponent(post.slug)}`,
lastModified: new Date(post.createdAt), lastModified: new Date(post.updatedAt),
changeFrequency: 'weekly' as const, changeFrequency: 'weekly' as const,
priority: 0.8, priority: 0.8,
})); }));