fix embed image paths

This commit is contained in:
horsefacts 2024-11-29 18:36:05 -05:00 committed by lucas-neynar
parent 06395560df
commit 2524ccf815
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -14,13 +14,13 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
const frame = { const frame = {
version: "next", version: "next",
imageUrl: `${appUrl}/opengraph-image`, imageUrl: `${appUrl}/frames/hello/${name}/opengraph-image`,
button: { button: {
title: "Launch Frame", title: "Launch Frame",
action: { action: {
type: "launch_frame", type: "launch_frame",
name: "Farcaster Frames v2 Demo", name: "Farcaster Frames v2 Demo",
url: `${appUrl}/hello/${name}/`, url: `${appUrl}/frames/hello/${name}/`,
splashImageUrl: `${appUrl}/splash.png`, splashImageUrl: `${appUrl}/splash.png`,
splashBackgroundColor: "#f7f7f7", splashBackgroundColor: "#f7f7f7",
}, },

View File

@ -5,13 +5,13 @@ const appUrl = process.env.NEXT_PUBLIC_URL;
const frame = { const frame = {
version: "next", version: "next",
imageUrl: `${appUrl}/hello/opengraph-image`, imageUrl: `${appUrl}/frames/hello/opengraph-image`,
button: { button: {
title: "Launch Frame", title: "Launch Frame",
action: { action: {
type: "launch_frame", type: "launch_frame",
name: "Farcaster Frames v2 Demo", name: "Farcaster Frames v2 Demo",
url: `${appUrl}/hello/`, url: `${appUrl}/frames/hello/`,
splashImageUrl: `${appUrl}/splash.png`, splashImageUrl: `${appUrl}/splash.png`,
splashBackgroundColor: "#f7f7f7", splashBackgroundColor: "#f7f7f7",
}, },