Skip to content

Commit

Permalink
add route caching
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Oct 22, 2024
1 parent e101728 commit e1ca746
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/apps/api-reference/app/api/base-specs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ export async function GET(request: Request) {
status: 200,
})
}

export const dynamic = "force-static"
export const revalidate = 3600
3 changes: 3 additions & 0 deletions www/apps/api-reference/app/api/schema/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ export async function GET(request: Request) {
}
)
}

export const dynamic = "force-static"
export const revalidate = 3600
3 changes: 3 additions & 0 deletions www/apps/api-reference/app/api/tag/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ export async function GET(request: Request) {
}
)
}

export const dynamic = "force-static"
export const revalidate = 3600

0 comments on commit e1ca746

Please sign in to comment.