aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/pages/api/og.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/api/og.tsx')
-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} />