File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments