We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb17b1 commit 9dc0cc4Copy full SHA for 9dc0cc4
2 files changed
app/api/og/route.tsx
@@ -8,6 +8,10 @@ export async function GET(request: Request) {
8
(
9
<div
10
style={{
11
+ backgroundImage: `url(${"https://llamacoder.io/dynamic-og.png"})`,
12
+ backgroundSize: "1200px 630px",
13
+ backgroundRepeat: "no-repeat",
14
+ backgroundPosition: "center center",
15
fontSize: 40,
16
color: "black",
17
background: "white",
@@ -19,7 +23,7 @@ export async function GET(request: Request) {
19
23
alignItems: "center",
20
24
}}
21
25
>
22
- {prompt}
26
+ {prompt && prompt.length > 100 ? prompt.slice(0, 97) + "..." : prompt}
27
</div>
28
),
29
{
public/dynamic-og.png
46.1 KB
0 commit comments