mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
web: revalidate download every minute
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user