chore: Update CACHE_OPTIONS to include next revalidation settings
This commit is contained in:
1 parent
7ca8d4fb7c
commit
3eb9115f24
1 file changed
+3
-1
+3
-1
@@ -14,7 +14,9 @@ export interface ZenTheme {
|
||||
}
|
||||
|
||||
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() {
|
||||
// Fetch from the API
|
||||
|
||||
Reference in new issue
Block a user