Skip to content

Commit 107af11

Browse files
committed
fix revalidate tags syntax
1 parent 1a7e4db commit 107af11

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/fetchers.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ export async function getSiteData(domain: string) {
1515
include: { user: true },
1616
});
1717
},
18-
[`${domain}-metadata`],
18+
[],
1919
{
20-
revalidate: 1,
20+
revalidate: 900,
21+
tags: [`${domain}-metadata`],
2122
},
2223
)();
2324
}
@@ -49,9 +50,10 @@ export async function getPostsForSite(domain: string) {
4950
],
5051
});
5152
},
52-
[`${domain}-posts`],
53+
[],
5354
{
54-
revalidate: 1,
55+
revalidate: 900,
56+
tags: [`${domain}-posts`],
5557
},
5658
)();
5759
}
@@ -107,9 +109,10 @@ export async function getPostData(domain: string, slug: string) {
107109
adjacentPosts,
108110
};
109111
},
110-
[`${domain}-${slug}`],
112+
[],
111113
{
112114
revalidate: 900,
115+
tags: [`${domain}-${slug}`],
113116
},
114117
)();
115118
}

0 commit comments

Comments
 (0)