Skip to content

Commit 061d873

Browse files
committed
Configure Vercel for branch-specific deployments
- Update vercel.json with function timeout configuration - Disable GitHub Actions dual deployment workflow - Use Vercel's built-in branch deployments instead - Next step: Configure branch-specific environment variables in Vercel dashboard
1 parent 4180d45 commit 061d873

2 files changed

Lines changed: 31 additions & 25 deletions

File tree

.github/workflows/dual-vercel-deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Dual Vercel Deployment
1+
# DISABLED: Using Vercel's built-in branch deployments instead
2+
# name: Dual Vercel Deployment
23

3-
on:
4-
push:
5-
branches: [dev]
6-
pull_request:
7-
branches: [dev]
4+
# on:
5+
# push:
6+
# branches: [dev]
7+
# pull_request:
8+
# branches: [dev]
89

910
jobs:
1011
deploy-dev-environment:

vercel.json

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
2-
"buildCommand": "npm run build",
3-
"env": {
4-
"SKIP_TYPE_CHECK": "1",
5-
"NODE_OPTIONS": "--max_old_space_size=4096",
6-
"GOOGLE_APPLICATION_CREDENTIALS": ""
7-
},
8-
"github": {
9-
"silent": false,
10-
"autoJobCancelation": true,
11-
"enabled": true
12-
},
13-
"git": {
14-
"deploymentEnabled": {
15-
"main": true,
16-
"dev": true
17-
}
18-
},
19-
"ignoreCommand": "if [[ \"$VERCEL_GIT_COMMIT_REF\" == \"dependabot\"* ]]; then exit 0; else exit 1; fi"
20-
}
2+
"buildCommand": "npm run build",
3+
"env": {
4+
"SKIP_TYPE_CHECK": "1",
5+
"NODE_OPTIONS": "--max_old_space_size=4096",
6+
"GOOGLE_APPLICATION_CREDENTIALS": ""
7+
},
8+
"github": {
9+
"silent": false,
10+
"autoJobCancelation": true,
11+
"enabled": true
12+
},
13+
"git": {
14+
"deploymentEnabled": {
15+
"main": true,
16+
"dev": true
17+
}
18+
},
19+
"functions": {
20+
"app/api/**/*.{js,ts}": {
21+
"maxDuration": 30
22+
}
23+
},
24+
"ignoreCommand": "if [[ \"$VERCEL_GIT_COMMIT_REF\" == \"dependabot\"* ]]; then exit 0; else exit 1; fi"
25+
}

0 commit comments

Comments
 (0)