fix: use vercel link to deploy with github

This commit is contained in:
lucas-neynar 2025-04-03 17:09:38 -07:00
parent f2ec709e2d
commit 63a480ebda
No known key found for this signature in database
2 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@neynar/create-farcaster-mini-app", "name": "@neynar/create-farcaster-mini-app",
"version": "1.2.9", "version": "1.2.10",
"type": "module", "type": "module",
"private": false, "private": false,
"access": "public", "access": "public",

View File

@ -466,21 +466,22 @@ async function deployToVercel(useGitHub = false) {
// Deploy the project // Deploy the project
if (useGitHub) { if (useGitHub) {
console.log('\n📦 Deploying with GitHub integration...'); console.log('\nSetting up GitHub integration...');
execSync('vercel deploy --prod --git', { execSync('vercel link', {
cwd: projectRoot, cwd: projectRoot,
stdio: 'inherit', stdio: 'inherit',
env: process.env env: process.env
}); });
console.log('\n📦 Deploying with GitHub integration...');
} else { } else {
console.log('\n📦 Deploying local code directly...'); 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 // Verify the actual domain after deployment
console.log('\n🔍 Verifying deployment domain...'); console.log('\n🔍 Verifying deployment domain...');