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

Pages deploy only reads pages_build_output_dir from wrangler.toml,
not wrangler.json.
This commit is contained in:
Sanil Chawla
2026-02-11 23:55:51 -08:00
parent 114e264519
commit 16bd0790de
3 changed files with 3 additions and 10 deletions

View File

@@ -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

View File

@@ -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
View File

@@ -0,0 +1,3 @@
name = "lofty-landing"
pages_build_output_dir = "dist"
compatibility_date = "2026-02-01"