File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { NextResponse } from 'next/server'
5
5
import type { NextRequest } from 'next/server'
6
6
7
7
export const runtime = 'edge'
8
+ export const revalidate = 60 * 60 * 24 // 24 hours
8
9
export const GET = async ( req : NextRequest ) => {
9
10
const pathname = req . nextUrl . pathname . split ( '/' ) . slice ( 3 )
10
11
const query = req . nextUrl . searchParams
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import type { NextRequest } from 'next/server'
7
7
import { NextServerResponse } from '~/lib/edge-function.server'
8
8
9
9
export const runtime = 'edge'
10
+ export const revalidate = 60 * 60 * 24 // 24 hours
10
11
export const GET = async ( req : NextRequest ) => {
11
12
const pathname = req . nextUrl . pathname . split ( '/' ) . slice ( 3 )
12
13
const query = req . nextUrl . searchParams
You can’t perform that action at this time.
0 commit comments