aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/pages/api
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-05-03 01:09:49 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-05-03 01:09:49 +0800
commita2f8df3b14979f74c03a79b2ffaf081739837899 (patch)
treef2d8e8eb2a3d323502ebcec0a7d02ae9a8daed01 /docs/pages/api
parentfade13d683c0420d83f523703d7038edbefe97f6 (diff)
downloadHydroRoll-a2f8df3b14979f74c03a79b2ffaf081739837899.tar.gz
HydroRoll-a2f8df3b14979f74c03a79b2ffaf081739837899.zip
Diffstat (limited to 'docs/pages/api')
-rw-r--r--docs/pages/api/og.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/pages/api/og.tsx b/docs/pages/api/og.tsx
index 196ca72..ceb55dc 100644
--- a/docs/pages/api/og.tsx
+++ b/docs/pages/api/og.tsx
@@ -76,10 +76,10 @@ export default async function openGraphImage(
const hasTitle = searchParams.has("title");
const title = hasTitle
? searchParams.get("title")?.slice(0, 100)
- : type === "pack"
- ? "The successor to Webpack"
- : type === "repo"
- ? "The build system that makes ship happen"
+ : type === "TRPG"
+ ? "跑团"
+ : type === "AI"
+ ? "人工智能"
: "";
return new ImageResponse(createElement(OGImage, { title, type, bg }), {
@@ -91,7 +91,7 @@ export default async function openGraphImage(
return new Response(undefined, {
status: 302,
headers: {
- Location: "https://turbo.build/og-image.png",
+ Location: "https://hydroroll.retrofor.space/og-image.png",
},
});
}
@@ -125,9 +125,9 @@ export function OGImage({
>
{/* eslint-disable-next-line @next/next/no-img-element, jsx-a11y/alt-text */}
<div style={{ display: "flex", height: 97 * 1.1, alignItems: "center" }}>
- {type === "pack" ? (
+ {type === "TRPG" ? (
<PackLogo height={103 * 1.1} width={697 * 1.1} />
- ) : type === "repo" ? (
+ ) : type === "AI" ? (
<RepoLogo height={83 * 1.1} width={616 * 1.1} />
) : (
<TurboLogo height={97 * 1.1} width={459 * 1.1} />