chore: Update CACHE_OPTIONS to include next revalidation settings
This commit is contained in:
@@ -14,7 +14,9 @@ export interface ZenTheme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const THEME_API = "https://zen-browser.github.io/theme-store/themes.json";
|
const THEME_API = "https://zen-browser.github.io/theme-store/themes.json";
|
||||||
const CACHE_OPTIONS = { cache: "no-cache" } as RequestInit;
|
const CACHE_OPTIONS = { next: {
|
||||||
|
revalidate: 60,
|
||||||
|
} } as RequestInit;
|
||||||
|
|
||||||
export async function getAllThemes() {
|
export async function getAllThemes() {
|
||||||
// Fetch from the API
|
// Fetch from the API
|
||||||
|
|||||||
Reference in New Issue
Block a user