Skip to content

Commit 59f50ea

Browse files
authored
Fix production deployments to Vercel (#2879)
1 parent 80d2733 commit 59f50ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: Pull Vercel Environment Information
115115
run: bun run vercel pull --yes --environment=$VERCEL_ENVIRONMENT --token=${{ secrets.VERCEL_TOKEN }}
116116
- name: Build Project Artifacts
117-
run: bun run vercel build --token=${{ secrets.VERCEL_TOKEN }}
117+
run: bun run vercel build --target=$VERCEL_ENVIRONMENT --token=${{ secrets.VERCEL_TOKEN }}
118118
env:
119119
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
120120
NEXT_SERVER_ACTIONS_ENCRYPTION_KEY: ${{ secrets.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY }}
@@ -125,7 +125,7 @@ jobs:
125125
- name: Deploy Project Artifacts to Vercel
126126
id: deploy
127127
run: |
128-
DEPLOYMENT_URL=$(bun run vercel deploy --prebuilt --target=$VERCEL_ENVIRONMENT $([ "$VERCEL_ENVIRONMENT" = "production" ] && echo "--prod") --token=${{ secrets.VERCEL_TOKEN }})
128+
DEPLOYMENT_URL=$(bun run vercel deploy --prebuilt --target=$VERCEL_ENVIRONMENT --token=${{ secrets.VERCEL_TOKEN }})
129129
echo "deployment-url=$DEPLOYMENT_URL" >> "$GITHUB_OUTPUT"
130130
- name: Outputs
131131
run: |

0 commit comments

Comments
 (0)