File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function checkVercelLogin() {
88 // Check if the user is logged in to Vercel
99 execSync ( 'vercel whoami' , { stdio : 'ignore' } ) ;
1010 return true ;
11- } catch ( error ) {
11+ } catch {
1212 return false ;
1313 }
1414}
@@ -29,7 +29,7 @@ function deployFrontendToVercel(options) {
2929 // Step 2: Check if Vercel CLI is installed
3030 try {
3131 execSync ( 'vercel --version' , { stdio : 'ignore' } ) ;
32- } catch ( error ) {
32+ } catch {
3333 console . error (
3434 chalk . red (
3535 '❌ Vercel CLI is not installed. Please install it using `npm install -g vercel`.'
@@ -47,7 +47,7 @@ function deployFrontendToVercel(options) {
4747 ) ;
4848 try {
4949 execSync ( 'vercel login' , { stdio : 'inherit' } ) ;
50- } catch ( error ) {
50+ } catch {
5151 console . error ( chalk . red ( '❌ Failed to log in to Vercel.' ) ) ;
5252 process . exit ( 1 ) ;
5353 }
@@ -58,7 +58,7 @@ function deployFrontendToVercel(options) {
5858 console . log ( chalk . blue ( '📦 Uploading environment variables...' ) ) ;
5959 try {
6060 execSync ( 'vercel env pull .env' , { stdio : 'inherit' } ) ;
61- } catch ( error ) {
61+ } catch {
6262 console . error ( chalk . red ( '❌ Failed to upload environment variables.' ) ) ;
6363 process . exit ( 1 ) ;
6464 }
@@ -84,7 +84,7 @@ function deployFrontendToVercel(options) {
8484 chalk . green . bold ( '\n🎉 Your frontend has been deployed to Vercel!' )
8585 ) ;
8686 console . log ( chalk . cyan ( `👉 Open the deployed URL: ${ deploymentUrl } ` ) ) ;
87- } catch ( error ) {
87+ } catch {
8888 console . error ( chalk . red ( '❌ Failed to retrieve deployment URL.' ) ) ;
8989 }
9090}
You can’t perform that action at this time.
0 commit comments