feat(SW-334): Added affix to metadata tag and added revalidate tag
This commit is contained in:
@@ -11,11 +11,13 @@ export type Variables = {
|
||||
uid: string
|
||||
}
|
||||
|
||||
export const affix = "metadata"
|
||||
|
||||
export async function getResponse<T>(query: string, variables: Variables) {
|
||||
const response = await request<T>(query, variables, {
|
||||
cache: "force-cache",
|
||||
next: {
|
||||
tags: [generateTag(variables.locale, variables.uid)],
|
||||
tags: [generateTag(variables.locale, variables.uid, affix)],
|
||||
},
|
||||
})
|
||||
if (!response.data) {
|
||||
|
||||
Reference in New Issue
Block a user