From 2524ccf81529ad2812d28c51e8f1670a0de9d7a1 Mon Sep 17 00:00:00 2001 From: horsefacts Date: Fri, 29 Nov 2024 18:36:05 -0500 Subject: [PATCH] fix embed image paths --- src/app/frames/hello/[name]/page.tsx | 4 ++-- src/app/frames/hello/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/frames/hello/[name]/page.tsx b/src/app/frames/hello/[name]/page.tsx index b47b45c..b41a47d 100644 --- a/src/app/frames/hello/[name]/page.tsx +++ b/src/app/frames/hello/[name]/page.tsx @@ -14,13 +14,13 @@ export async function generateMetadata({ params }: Props): Promise { const frame = { version: "next", - imageUrl: `${appUrl}/opengraph-image`, + imageUrl: `${appUrl}/frames/hello/${name}/opengraph-image`, button: { title: "Launch Frame", action: { type: "launch_frame", name: "Farcaster Frames v2 Demo", - url: `${appUrl}/hello/${name}/`, + url: `${appUrl}/frames/hello/${name}/`, splashImageUrl: `${appUrl}/splash.png`, splashBackgroundColor: "#f7f7f7", }, diff --git a/src/app/frames/hello/page.tsx b/src/app/frames/hello/page.tsx index c5ec0a8..4d5ba19 100644 --- a/src/app/frames/hello/page.tsx +++ b/src/app/frames/hello/page.tsx @@ -5,13 +5,13 @@ const appUrl = process.env.NEXT_PUBLIC_URL; const frame = { version: "next", - imageUrl: `${appUrl}/hello/opengraph-image`, + imageUrl: `${appUrl}/frames/hello/opengraph-image`, button: { title: "Launch Frame", action: { type: "launch_frame", name: "Farcaster Frames v2 Demo", - url: `${appUrl}/hello/`, + url: `${appUrl}/frames/hello/`, splashImageUrl: `${appUrl}/splash.png`, splashBackgroundColor: "#f7f7f7", },