Browse Source

web: revalidate download every minute

Jeffrey Morgan 1 year ago
parent
commit
1e97807808
1 changed files with 2 additions and 0 deletions
  1. 2 0
      web/app/download/page.tsx

+ 2 - 0
web/app/download/page.tsx

@@ -3,6 +3,8 @@ import { redirect } from 'next/navigation'
 
 
 const octokit = new Octokit()
 const octokit = new Octokit()
 
 
+export const revalidate = 60
+
 export default async function Download() {
 export default async function Download() {
   const { data } = await octokit.repos.getLatestRelease({
   const { data } = await octokit.repos.getLatestRelease({
     owner: 'jmorganca',
     owner: 'jmorganca',