mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
fix: frame manifest
This commit is contained in:
parent
44eeeddfc2
commit
01231de8f4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "create-neynar-farcaster-frame",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"bin/index.js"
|
||||
|
||||
@ -441,16 +441,26 @@ async function deployToVercel(useGitHub = false) {
|
||||
console.log('\n🔍 Verifying deployment domain...');
|
||||
const projectOutput = execSync('vercel project ls', {
|
||||
cwd: projectRoot,
|
||||
encoding: 'utf8'
|
||||
encoding: 'utf8',
|
||||
stdio: ['inherit', 'pipe', 'inherit'] // Capture stdout but show stderr
|
||||
});
|
||||
|
||||
const projectLines = projectOutput.split('\n');
|
||||
const currentProject = projectLines.find(line => line.includes(projectName));
|
||||
console.log('currentProject');
|
||||
console.log(currentProject);
|
||||
console.log('Project lines:', projectLines);
|
||||
|
||||
// Find the line containing our project name
|
||||
const currentProject = projectLines.find(line =>
|
||||
line.includes(projectName) && line.includes('https://')
|
||||
);
|
||||
|
||||
console.log('Current project line:', currentProject);
|
||||
|
||||
if (currentProject) {
|
||||
const actualDomain = currentProject.split(/\s+/)[1]?.replace('https://', '');
|
||||
if (actualDomain && actualDomain !== domain) {
|
||||
// Extract the domain from the line
|
||||
const domainMatch = currentProject.match(/https:\/\/([^\s]+)/);
|
||||
if (domainMatch) {
|
||||
const actualDomain = domainMatch[1];
|
||||
if (actualDomain !== domain) {
|
||||
console.log(`⚠️ Actual domain (${actualDomain}) differs from assumed domain (${domain})`);
|
||||
console.log('🔄 Updating environment variables with correct domain...');
|
||||
|
||||
@ -504,6 +514,11 @@ async function deployToVercel(useGitHub = false) {
|
||||
|
||||
domain = actualDomain;
|
||||
}
|
||||
} else {
|
||||
console.warn('⚠️ Could not extract domain from project line');
|
||||
}
|
||||
} else {
|
||||
console.warn('⚠️ Could not find project in Vercel project list');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -5,8 +5,8 @@ const appUrl = process.env.NEXT_PUBLIC_URL;
|
||||
|
||||
// frame preview metadata
|
||||
const appName = process.env.NEXT_PUBLIC_FRAME_NAME;
|
||||
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 splashImageUrl = `${appUrl}/splash.png`;
|
||||
const iconUrl = `${appUrl}/icon.png`;
|
||||
|
||||
const framePreviewMetadata = {
|
||||
version: "next",
|
||||
|
||||
@ -104,11 +104,11 @@ export async function getFarcasterMetadata(): Promise<FrameMetadata> {
|
||||
frame: {
|
||||
version: "1",
|
||||
name: process.env.NEXT_PUBLIC_FRAME_NAME || "Frames v2 Demo",
|
||||
iconUrl: process.env.NEXT_PUBLIC_FRAME_ICON_IMAGE_URL || `${appUrl}/icon.png`,
|
||||
iconUrl: `${appUrl}/icon.png`,
|
||||
homeUrl: appUrl,
|
||||
imageUrl: `${appUrl}/opengraph-image`,
|
||||
buttonTitle: process.env.NEXT_PUBLIC_FRAME_BUTTON_TEXT || "Launch Frame",
|
||||
splashImageUrl: process.env.NEXT_PUBLIC_FRAME_SPLASH_IMAGE_URL || `${appUrl}/splash.png`,
|
||||
splashImageUrl: `${appUrl}/splash.png`,
|
||||
splashBackgroundColor: "#f7f7f7",
|
||||
webhookUrl,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user