From 63a480ebda8f1208e2b711ae7d273d41bbabf622 Mon Sep 17 00:00:00 2001 From: lucas-neynar Date: Thu, 3 Apr 2025 17:09:38 -0700 Subject: [PATCH] fix: use vercel link to deploy with github --- package.json | 2 +- scripts/deploy.js | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6068e07..5bc697d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neynar/create-farcaster-mini-app", - "version": "1.2.9", + "version": "1.2.10", "type": "module", "private": false, "access": "public", diff --git a/scripts/deploy.js b/scripts/deploy.js index f44f2d0..5d0cfd2 100755 --- a/scripts/deploy.js +++ b/scripts/deploy.js @@ -466,21 +466,22 @@ async function deployToVercel(useGitHub = false) { // Deploy the project if (useGitHub) { - console.log('\nšŸ“¦ Deploying with GitHub integration...'); - execSync('vercel deploy --prod --git', { + console.log('\nSetting up GitHub integration...'); + execSync('vercel link', { cwd: projectRoot, stdio: 'inherit', env: process.env }); + console.log('\nšŸ“¦ Deploying with GitHub integration...'); } else { console.log('\nšŸ“¦ Deploying local code directly...'); - execSync('vercel deploy --prod', { - cwd: projectRoot, - stdio: 'inherit', - env: process.env - }); } + execSync('vercel deploy --prod', { + cwd: projectRoot, + stdio: 'inherit', + env: process.env + }); // Verify the actual domain after deployment console.log('\nšŸ” Verifying deployment domain...');