forked from MihirMandviya/message-blast-easy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-delete-template.bat
More file actions
60 lines (49 loc) Β· 1.31 KB
/
deploy-delete-template.bat
File metadata and controls
60 lines (49 loc) Β· 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
echo π Deploying Delete Template Functionality...
REM Check if Vercel CLI is installed
vercel --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Vercel CLI is not installed. Please install it first:
echo npm install -g vercel
pause
exit /b 1
)
REM Check if user is logged in to Vercel
vercel whoami >nul 2>&1
if %errorlevel% neq 0 (
echo β Not logged in to Vercel. Please login first:
echo vercel login
pause
exit /b 1
)
echo β
Vercel CLI is ready
REM Build the project
echo π¦ Building project...
call npm run build
if %errorlevel% neq 0 (
echo β Build failed
pause
exit /b 1
)
echo β
Build completed successfully
REM Deploy to Vercel
echo π Deploying to Vercel...
call vercel --prod
if %errorlevel% neq 0 (
echo β Deployment failed
pause
exit /b 1
)
echo β
Deployment completed successfully!
echo.
echo π Delete Template API endpoint should now be available at:
echo /api/delete-template
echo.
echo π Next steps:
echo 1. Test the delete functionality in your app
echo 2. Check Vercel logs if there are any issues
echo 3. Verify the endpoint is working correctly
echo.
echo π To check if the endpoint is working, you can test it with:
echo curl -X DELETE https://your-vercel-domain.vercel.app/api/delete-template
pause