Skip to content

Commit 1fe63e0

Browse files
ericyangpanclaude
andcommitted
refactor(deploy): switch to opennextjs-cloudflare deploy command
Replace cloudflare/wrangler-action with direct npx opennextjs-cloudflare deploy command for both production and staging environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6100784 commit 1fe63e0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/deploy-production.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
BUILD_TIME: ${{ github.event.head_commit.timestamp }}
4242

4343
- name: Deploy to Production
44-
uses: cloudflare/wrangler-action@v3
45-
with:
46-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48-
command: deploy --env production
44+
run: npx --no-install opennextjs-cloudflare deploy --env production
45+
env:
46+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4948

5049
- name: Deployment summary
5150
run: |

.github/workflows/deploy-staging.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
BUILD_TIME: ${{ github.event.head_commit.timestamp }}
4242

4343
- name: Deploy to Staging
44-
uses: cloudflare/wrangler-action@v3
45-
with:
46-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48-
command: deploy --env staging
44+
run: npx --no-install opennextjs-cloudflare deploy --env staging
45+
env:
46+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4948

5049
- name: Deployment summary
5150
run: |

0 commit comments

Comments
 (0)