diff --git a/frontend/src/app/actions.tsx b/frontend/src/app/actions.tsx index a2d5c2f..380ab8d 100644 --- a/frontend/src/app/actions.tsx +++ b/frontend/src/app/actions.tsx @@ -4,7 +4,7 @@ export async function getAlbums() { return fetch('https://api.anatid.net/album', { method: "GET", headers: { "Content-Type": "application/json" }, - next: { revalidate: 3600 } + next: { revalidate: 10 } }).then(response => { if (response.ok) { return response.json(); @@ -19,7 +19,7 @@ export async function getAlbum(id: number) { return fetch(`https://api.anatid.net/album/${id}`, { method: "GET", headers: { "Content-Type": "application/json" }, - next: { revalidate: 3600 } + next: { revalidate: 10 } }).then(response => { if (response.ok) { return response.json(); @@ -98,7 +98,7 @@ export async function getSongs() { return fetch("https://api.anatid.net/song/", { method: "GET", headers: { "Content-Type": "application/json" }, - next: { revalidate: 3600 } + next: { revalidate: 10 } }).then(response => { if (response.ok) { return response.json(); @@ -113,7 +113,7 @@ export async function getSong(id: number) { return fetch(`https://api.anatid.net/song/${id}`, { method: "GET", headers: { "Content-Type": "application/json" }, - next: { revalidate: 3600 } + next: { revalidate: 10 } }).then(response => { if (response.ok) { return response.json(); @@ -164,7 +164,7 @@ export async function updateSong(formData: FormData) { duration: duration, trackNumber: trackNumber, }), - next: { revalidate: 3600 } + next: { revalidate: 10 } }).then(response => { if (response.ok) { return response.json();