File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Worker
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - " frontend/**"
9+ - " .github/workflows/deploy-worker.yml"
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : deploy-worker-production
14+ cancel-in-progress : true
15+
16+ jobs :
17+ deploy :
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ defaults :
22+ run :
23+ working-directory : frontend
24+ env :
25+ CLOUDFLARE_ACCOUNT_ID : ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
26+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - uses : actions/setup-node@v4
31+ with :
32+ node-version : 22
33+ cache : npm
34+ cache-dependency-path : frontend/package-lock.json
35+
36+ - name : Install dependencies
37+ run : npm ci
38+
39+ - name : Deploy OpenNext Worker
40+ run : npm run deploy:cf
Original file line number Diff line number Diff line change 1515
1616# next.js
1717/.next /
18+ /.open-next /
1819/out /
1920
2021# production
Original file line number Diff line number Diff line change 1+ import { defineCloudflareConfig } from "@opennextjs/cloudflare" ;
2+
3+ export default defineCloudflareConfig ( ) ;
You can’t perform that action at this time.
0 commit comments