fix: amber fix
Build and Push Image / docker (push) Successful in 6m59s

This commit is contained in:
2026-05-26 12:46:24 +07:00 Unverified
parent a98f14d1fb
commit 809bb8d09c
3 changed files with 45 additions and 55 deletions
+5 -1
View File
@@ -1,8 +1,12 @@
import { getAmberVh } from "@/lib/api";
export const revalidate = 3600;
export async function GET() {
return new Response(
await fetch("https://gi.yatta.moe/api/v2/en/avatar").then((e) => e.text()),
await fetch(`https://gi.yatta.moe/api/v2/en/avatar?vh=${await getAmberVh()}`).then((e) =>
e.text(),
),
{
headers: {
"Content-Type": "application/json",
+3 -1
View File
@@ -1,8 +1,10 @@
import { getAmberVh } from "@/lib/api";
export const revalidate = 3600;
export async function GET() {
return new Response(
await fetch("https://gi.yatta.moe/api/v2/static/changelog").then((e) =>
await fetch(`https://gi.yatta.moe/api/v2/static/changelog?vh=${await getAmberVh()}`).then((e) =>
e.text(),
),
{