From 16bd0790dec429cf1b2ae5b894b2a0d5229b943f Mon Sep 17 00:00:00 2001 From: Sanil Chawla Date: Wed, 11 Feb 2026 23:55:51 -0800 Subject: [PATCH] fix(ci): switch from wrangler.json to wrangler.toml for Pages compat Pages deploy only reads pages_build_output_dir from wrangler.toml, not wrangler.json. --- .gitea/workflows/deploy.yaml | 4 ---- wrangler.json | 6 ------ wrangler.toml | 3 +++ 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 wrangler.json create mode 100644 wrangler.toml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6d4258a..ec1afc4 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,13 +25,9 @@ jobs: - name: Build run: bun run build - - name: Debug working directory - run: ls -la && cat wrangler.json - - name: Deploy to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - workingDirectory: "." command: pages deploy diff --git a/wrangler.json b/wrangler.json deleted file mode 100644 index b57852b..0000000 --- a/wrangler.json +++ /dev/null @@ -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" -} diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..348b512 --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,3 @@ +name = "lofty-landing" +pages_build_output_dir = "dist" +compatibility_date = "2026-02-01"