Skip to content

Commit 97453a6

Browse files
committed
fix
1 parent acda702 commit 97453a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/lib/sitemap-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function processNonDocPages(
106106
function processBlogPages(baseUrl: string): Promise<MetadataRoute.Sitemap> {
107107
return getPosts()
108108
.then((data) => {
109-
if (!data?.posts) {
109+
if ('error' in data || !data?.posts) {
110110
return [];
111111
}
112112

0 commit comments

Comments
 (0)