Revalidate buttons quicker
This commit is contained in:
parent
614cc93b7e
commit
7715d0d5db
1 changed files with 6 additions and 1 deletions
|
@ -3,7 +3,12 @@ import Link from "next/link";
|
|||
import Searchbar from "@/components/Searchbar/Searchbar";
|
||||
|
||||
export default async function Home() {
|
||||
const buttons = await fetch("https://cdn.abtmtr.link/site_content/buttons.json", { next: { revalidate: 3600 } }).then(x=>x.json()).catch(_ => null);
|
||||
const buttons = await fetch(
|
||||
"https://cdn.abtmtr.link/site_content/buttons.json",
|
||||
{ next: { revalidate: 60 } }
|
||||
)
|
||||
.then((x) => x.json())
|
||||
.catch((_) => null);
|
||||
const data = await fetch("https://pronouns.cc/api/v1/users/mtr", { next: { revalidate: 3600 } }).then(x=>x.json()).catch(_ => null);
|
||||
const domains = await fetch("https://cdn.abtmtr.link/site_content/domain.json", { next: { revalidate: 3600 } })
|
||||
.then(x=>x.json()).catch(_ => "[]");
|
||||
|
|
Loading…
Reference in a new issue