mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-19 17:36:09 -05:00
add icon url to input and fix splash image url default
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -67,7 +67,7 @@ export async function generateFarcasterMetadata() {
|
||||
frame: {
|
||||
version: "1",
|
||||
name: process.env.NEXT_PUBLIC_FRAME_NAME || "Frames v2 Demo",
|
||||
iconUrl: `${appUrl}/icon.png`,
|
||||
iconUrl: process.env.NEXT_PUBLIC_FRAME_ICON_IMAGE_URL || `${appUrl}/icon.png`,
|
||||
homeUrl: appUrl,
|
||||
imageUrl: `${appUrl}/opengraph-image`,
|
||||
buttonTitle: process.env.NEXT_PUBLIC_FRAME_BUTTON_TEXT || "Launch Frame",
|
||||
|
||||
Reference in New Issue
Block a user