File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 - run : pnpm install --frozen-lockfile
3030 - run : pnpm build
3131
32- - name : Publish to Cloudflare Pages
32+ - name : Publish to Cloudflare
3333 uses : cloudflare/wrangler-action@v3
3434 with :
3535 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
3636 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
37- command : pages deploy dist --project-name=prodscript
37+ command : deploy
Original file line number Diff line number Diff line change 99 "lint" : " oxlint" ,
1010 "preview" : " vite preview" ,
1111 "og" : " node scripts/make-og.mjs" ,
12- "deploy" : " pnpm build && pnpm dlx wrangler pages deploy dist --project-name=prodscript "
12+ "deploy" : " pnpm build && pnpm dlx wrangler deploy"
1313 },
1414 "dependencies" : {
1515 "react" : " ^19.2.7" ,
Original file line number Diff line number Diff line change 1- # Cloudflare Pages project config .
2- # Enables `wrangler pages deploy` and CI to know where the built site lives .
1+ # Cloudflare Workers — static assets. Serves the built Vite site from ./dist .
2+ # Cloudflare's unified Workers/Pages flow deploys this with `wrangler deploy` .
33name = " prodscript"
44compatibility_date = " 2026-06-23"
5- pages_build_output_dir = " dist"
5+
6+ [assets ]
7+ directory = " ./dist"
8+ not_found_handling = " 404-page"
You can’t perform that action at this time.
0 commit comments