fix(ci): switch from wrangler.json to wrangler.toml for Pages compat
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 26s
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 26s
Pages deploy only reads pages_build_output_dir from wrangler.toml, not wrangler.json.
This commit is contained in:
@@ -25,13 +25,9 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
|
|
||||||
- name: Debug working directory
|
|
||||||
run: ls -la && cat wrangler.json
|
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: Deploy to Cloudflare Pages
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
workingDirectory: "."
|
|
||||||
command: pages deploy
|
command: pages deploy
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://raw.githubusercontent.com/cloudflare/workers-sdk/main/packages/wrangler/config-schema/schema.json",
|
|
||||||
"name": "lofty-landing",
|
|
||||||
"pages_build_output_dir": "dist",
|
|
||||||
"compatibility_date": "2026-02-01"
|
|
||||||
}
|
|
||||||
3
wrangler.toml
Normal file
3
wrangler.toml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
name = "lofty-landing"
|
||||||
|
pages_build_output_dir = "dist"
|
||||||
|
compatibility_date = "2026-02-01"
|
||||||
Reference in New Issue
Block a user