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 Docs
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+
9+ concurrency :
10+ group : deploy-docs
11+ cancel-in-progress : false
12+
13+ jobs :
14+ deploy :
15+ name : Deploy Fumadocs to Cloudflare
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+
21+ - name : Setup Bun
22+ uses : oven-sh/setup-bun@v2
23+ with :
24+ bun-version : latest
25+
26+ - name : Install dependencies
27+ run : bun install --frozen-lockfile
28+
29+ - name : Deploy docs
30+ run : bun run --cwd apps/docs deploy
31+ env :
32+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -37,4 +37,8 @@ coverage/
3737
3838packages /repterm /release
3939
40- * .tgz
40+ * .tgz
41+
42+ # Docs deployment artifacts
43+ apps /docs /.open-next /
44+ apps /docs /.vercel /
Original file line number Diff line number Diff line change 1+ import { defineCloudflareConfig } from '@opennextjs/cloudflare' ;
2+
3+ export default defineCloudflareConfig ( ) ;
Original file line number Diff line number Diff line change 77 "dev" : " next dev" ,
88 "build" : " next build" ,
99 "start" : " next start" ,
10- "postinstall" : " fumadocs-mdx"
10+ "postinstall" : " fumadocs-mdx" ,
11+ "preview" : " opennextjs-cloudflare build && wrangler dev" ,
12+ "deploy" : " opennextjs-cloudflare build && opennextjs-cloudflare deploy"
1113 },
1214 "dependencies" : {
15+ "@opennextjs/cloudflare" : " ^1.17.1" ,
1316 "fumadocs-core" : " ^15.2.10" ,
1417 "fumadocs-mdx" : " ^13.0.8" ,
1518 "fumadocs-ui" : " 15.8.5" ,
2528 "@types/react-dom" : " ^19.0.0" ,
2629 "postcss" : " ^8.5.0" ,
2730 "tailwindcss" : " ^4.1.0" ,
28- "typescript" : " ^5.3.0"
31+ "typescript" : " ^5.3.0" ,
32+ "wrangler" : " ^4.71.0"
2933 }
3034}
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " node_modules/wrangler/config-schema.json" ,
3+ "name" : " repterm-docs" ,
4+ "account_id" : " 6d7b0ffbd980de250cbff2e25503230d" ,
5+ "main" : " .open-next/worker.js" ,
6+ "assets" : {
7+ "binding" : " ASSETS" ,
8+ "directory" : " .open-next/assets"
9+ },
10+ "compatibility_date" : " 2026-03-06" ,
11+ "compatibility_flags" : [" nodejs_compat" ],
12+ "observability" : {
13+ "enabled" : true
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments