Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
1e978078
Commit
1e978078
authored
Jul 08, 2023
by
Jeffrey Morgan
Browse files
web: revalidate download every minute
parent
840f8743
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
web/app/download/page.tsx
web/app/download/page.tsx
+2
-0
No files found.
web/app/download/page.tsx
View file @
1e978078
...
@@ -3,6 +3,8 @@ import { redirect } from 'next/navigation'
...
@@ -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
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment