add icon url to input and fix splash image url default

This commit is contained in:
lucas-neynar
2025-03-13 15:37:41 -07:00
parent 722d938ae5
commit ace806fcb9
4 changed files with 18 additions and 81 deletions

View File

@@ -7,6 +7,7 @@ const appUrl = process.env.NEXT_PUBLIC_URL;
// question: do we need metadata both in this file and in the .well-known/farcaster.json file?
const appName = process.env.NEXT_PUBLIC_FRAME_NAME || "Frames v2 Demo";
const splashImageUrl = process.env.NEXT_PUBLIC_FRAME_SPLASH_IMAGE_URL || `${appUrl}/splash.png`;
const iconUrl = process.env.NEXT_PUBLIC_FRAME_ICON_IMAGE_URL || `${appUrl}/icon.png`;
const frame = {
version: "next",
@@ -18,6 +19,7 @@ const frame = {
name: appName,
url: appUrl,
splashImageUrl,
iconUrl,
splashBackgroundColor: "#f7f7f7",
},
},