Revalidate data every 60 sec
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@ const AWTIS_POU_CHAK_PAJ = process.env.NEXT_PUBLIC_AWTIS_POU_CHAK_PAJ || 6
|
|||||||
const readToken = process.env.NEXT_PUBLIC_READ_TOKEN || 'read-token'
|
const readToken = process.env.NEXT_PUBLIC_READ_TOKEN || 'read-token'
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
|
next: {revalidate: 60},
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${readToken}`
|
Authorization: `Bearer ${readToken}`
|
||||||
}
|
}
|
||||||
@@ -300,5 +301,5 @@ export async function passwordRequest(lyen, email) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function jwennStats() {
|
export async function jwennStats() {
|
||||||
return request('/stats')
|
return request('/stats', {next: {revalidate: 60}})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user