Skip to content

Commit

Permalink
Add revalidate every 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 7, 2024
1 parent 509b9c5 commit 73a2b1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/fetchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const fetchApi = async <T>(
headers: {
Authorization: `Bearer ${process.env.SG_CARS_TRENDS_API_TOKEN}`,
},
next: { revalidate: 3600 },
};

const mergedOptions: RequestInit = {
Expand Down

0 comments on commit 73a2b1e

Please sign in to comment.