fix: search api on blog

This commit is contained in:
Manuel Garcia Genta
2022-04-11 13:02:44 -03:00
parent 04d995933e
commit c17090fa47
3 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const cms = (preview?: boolean) => {
return getSdk(
new GraphQLClient(preview ? previewEndpoint : endpoint, {
headers: {
Authorization: `Bearer ${process.env.CMS_ACCESS_TOKEN}`
Authorization: `Bearer ${process.env.NEXT_PUBLIC_CMS_ACCESS_TOKEN}`
}
})
)