Skip to content

Commit

Permalink
fix: add revalidate
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jan 3, 2024
1 parent a70f638 commit 01a9aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/api/gh/[...all]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'

export const runtime = 'edge'
export const revalidate = 60 * 60 * 24 // 24 hours
export const GET = async (req: NextRequest) => {
const pathname = req.nextUrl.pathname.split('/').slice(3)
const query = req.nextUrl.searchParams
Expand Down
1 change: 1 addition & 0 deletions src/app/api/tmdb/[...all]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { NextRequest } from 'next/server'
import { NextServerResponse } from '~/lib/edge-function.server'

export const runtime = 'edge'
export const revalidate = 60 * 60 * 24 // 24 hours
export const GET = async (req: NextRequest) => {
const pathname = req.nextUrl.pathname.split('/').slice(3)
const query = req.nextUrl.searchParams
Expand Down

1 comment on commit 01a9aaa

@vercel
Copy link

@vercel vercel bot commented on 01a9aaa Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
innei.in
springtide.vercel.app
shiro-git-main-innei.vercel.app

Please sign in to comment.