chore: Update CACHE_OPTIONS to include next revalidation settings

This commit is contained in:
mauro-balades
2024-08-27 16:55:23 +02:00
parent 7ca8d4fb7c
commit 3eb9115f24

View File

@@ -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