Skip to content

Commit

Permalink
fix: vercel cache
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 11, 2024
1 parent d588181 commit acdd7f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/(app)/feed/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getQueryClient } from '~/lib/query-client.server'
import { apiClient } from '~/lib/request'

// export const dynamic = 'force-dynamic'
export const revalidate = 60 * 60 * 24 // 1 day
export const revalidate = 86400 // 1 day

interface RSSProps {
title: string
Expand Down
2 changes: 1 addition & 1 deletion src/app/(app)/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const apiClient = createClient(fetchAdaptor)(API_URL, {

export const runtime = 'edge'

export const revalidate = 60 * 60 * 24 // 24 hours
export const revalidate = 86400 // 24 hours

const resOptions = {
width: 1200,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(app)/sitemap/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getQueryClient } from '~/lib/query-client.server'
import { apiClient } from '~/lib/request'

export const dynamic = 'force-dynamic'
export const revalidate = 60 * 60 // 1 hour
export const revalidate = 3600 // 1 hour
export const GET = async () => {
const queryClient = getQueryClient()

Expand Down
2 changes: 1 addition & 1 deletion src/app/api/gh/[...all]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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 revalidate = 86400 // 24 hours
export const GET = async (req: NextRequest) => {
const pathname = req.nextUrl.pathname.split('/').slice(3)
const query = req.nextUrl.searchParams
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/tmdb/[...all]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 revalidate = 86400 // 24 hours
export const GET = async (req: NextRequest) => {
const pathname = req.nextUrl.pathname.split('/').slice(3)
const query = req.nextUrl.searchParams
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/xlog/summary/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const headers = {

export const runtime = 'edge'

export const revalidate = 60 * 60 // 1 hour
export const revalidate = 3600 // 1 hour

export const GET = async (req: NextRequest) => {
const query = req.nextUrl.searchParams
Expand Down

0 comments on commit acdd7f6

Please sign in to comment.