Skip to content

Commit 4e90923

Browse files
committed
chore: cache 무효화 대신 turbo.json에 output 명시
1 parent 74deafa commit 4e90923

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-vercel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
run: |
3535
set +e
3636
37-
# 1) Initial production deploy with --force flag to skip cache
38-
npx vercel --prod --yes --force \
37+
# 1) Initial production deploy (capture logs)
38+
npx vercel --prod --yes \
3939
--token "$VERCEL_TOKEN" \
4040
--scope "$VERCEL_ORG_ID" > deploy.log 2>&1
4141
EXIT_CODE=$?
@@ -48,7 +48,7 @@ jobs:
4848
if [ $EXIT_CODE -ne 0 ]; then
4949
if grep -q "Cannot find module '@repo/types'" deploy.log; then
5050
echo "❗️ Initial deployment failed due to @repo/types module error. Redeploying..."
51-
npx vercel redeploy "$DEPLOY_URL" --force \
51+
npx vercel redeploy "$DEPLOY_URL" \
5252
--token "$VERCEL_TOKEN" \
5353
--scope "$VERCEL_ORG_ID"
5454
REDO_EXIT=$?

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": {
66
"dependsOn": ["^build"],
77
"inputs": ["$TURBO_DEFAULT$", ".env*"],
8-
"outputs": [".next/**", "!.next/cache/**"]
8+
"outputs": ["dist/**", "build/**", ".next/**", "!.next/cache/**"]
99
},
1010
"lint": {
1111
"dependsOn": ["^lint"]

0 commit comments

Comments
 (0)