Skip to content

Commit a41df63

Browse files
author
Neil Munoz
committed
Fix Vercel configuration conflicts and CLI flags
- Remove conflicting 'builds' property from vercel.json (keeps only 'functions') - Remove invalid '--org' flag from vercel link command - Add memory configuration to functions for better performance - Fix for Vercel CLI v46.1.1 compatibility issues
1 parent 37d56e9 commit a41df63

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.github/workflows/production-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ jobs:
368368
369369
# Link to project (if needed)
370370
echo "🔗 Linking to Vercel project..."
371-
if [ -n "$VERCEL_ORG_ID" ] && [ -n "$VERCEL_PROJECT_ID" ]; then
372-
vercel link --project "$VERCEL_PROJECT_ID" --org "$VERCEL_ORG_ID" --yes --token "$VERCEL_TOKEN" || true
371+
if [ -n "$VERCEL_PROJECT_ID" ]; then
372+
vercel link --project "$VERCEL_PROJECT_ID" --yes --token "$VERCEL_TOKEN" || true
373373
fi
374374
375375
# Deploy to Vercel

vercel.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
{
22
"version": 2,
3-
"builds": [
4-
{
5-
"src": "api/index.py",
6-
"use": "@vercel/python",
7-
"config": {
8-
"maxLambdaSize": "50mb"
9-
}
3+
"functions": {
4+
"api/index.py": {
5+
"maxDuration": 30,
6+
"memory": 1024
107
}
11-
],
8+
},
129
"routes": [
1310
{
1411
"src": "/(.*)",
1512
"dest": "api/index.py"
1613
}
1714
],
18-
"functions": {
19-
"api/index.py": {
20-
"maxDuration": 30
21-
}
22-
},
2315
"env": {
2416
"ENVIRONMENT": "production"
2517
},

0 commit comments

Comments
 (0)