Skip to content

wrangler.jsonc file not utilized in Cloudflare Pages build #14926

@hyunbinseo

Description

@hyunbinseo

Describe the bug

Adding a wrangler.jsonc file according to the docs results in a malformed configuration file:

Found wrangler.json file. Reading build configuration...

A wrangler.toml file was found but it does not appear to be valid. Did you mean to use wrangler.toml to configure Pages? If so, then make sure the file is valid and contains the pages_build_output_dir property. Skipping file and continuing.

Reproduction

https://github.com/hyunbinseo/svelte-kit-14926

Logs

2025-11-14T11:59:34.213467Z	Cloning repository...
2025-11-14T11:59:34.815284Z	From https://github.com/hyunbinseo/svelte-kit-14926
2025-11-14T11:59:34.815784Z	 * branch            3bc5a8f5f6ac331817839f96d68b63060a3ec077 -> FETCH_HEAD
2025-11-14T11:59:34.815889Z	
2025-11-14T11:59:34.843402Z	HEAD is now at 3bc5a8f chore: add wrangler.jsonc file
2025-11-14T11:59:34.844004Z	
2025-11-14T11:59:34.930133Z	
2025-11-14T11:59:34.930587Z	Using v2 root directory strategy
2025-11-14T11:59:34.954518Z	Success: Finished cloning repository files
2025-11-14T11:59:36.758261Z	Checking for configuration in a Wrangler configuration file (BETA)
2025-11-14T11:59:36.758819Z	
2025-11-14T11:59:36.759999Z	Found wrangler.json file. Reading build configuration...
2025-11-14T11:59:37.862866Z	A wrangler.toml file was found but it does not appear to be valid. Did you mean to use wrangler.toml to configure Pages? If so, then make sure the file is valid and contains the `pages_build_output_dir` property. Skipping file and continuing.
20:59:52.846	 ⛅️ wrangler 3.101.0
20:59:52.847	-------------------
20:59:53.917	▲ [WARNING] The package "node:async_hooks" wasn't found on the file system but is built into node.
20:59:53.918	
20:59:53.918	  Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to https://developers.cloudflare.com/workers/runtime-apis/nodejs/ for more details. Imported from:
20:59:53.919	   - ../../node_modules/.pnpm/@sveltejs+kit@2.48.5_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.43.6_vite@7.2.2__svelte@5.43.6_vite@7.2.2/node_modules/@sveltejs/kit/src/exports/internal/event.js
20:59:53.919	
20:59:53.919	
20:59:53.919	✨ Compiled Worker successfully
20:59:55.004	Found _routes.json in output directory. Uploading.
20:59:55.017	Validating asset output directory
20:59:57.826	Deploying your site to Cloudflare's global network...
21:00:00.856	Parsed 2 valid header rules.
21:00:02.628	Uploading... (0/16)
21:00:07.957	Uploading... (5/16)
21:00:08.205	Uploading... (10/16)
21:00:08.307	Uploading... (16/16)
21:00:08.307	✨ Success! Uploaded 16 files (6.50 sec)
21:00:08.308	
21:00:08.784	✨ Upload complete!
21:00:14.676	Success: Assets published!
21:00:21.329	Success: Your site was deployed!

System Info

System:
  OS: Windows 11 10.0.26200
  CPU: (8) x64 Intel(R) Core(TM) Ultra 7 258V
  Memory: 4.71 GB / 31.48 GB
Binaries:
  Node: 24.11.0 - C:\Users\hyunb\AppData\Local\fnm_multishells\27868_1763104344985\node.EXE
  Yarn: 1.22.22 - C:\Users\hyunb\AppData\Local\fnm_multishells\27868_1763104344985\yarn.CMD
  npm: 11.6.1 - C:\Users\hyunb\AppData\Local\fnm_multishells\27868_1763104344985\npm.CMD
  pnpm: 10.22.0 - C:\Users\hyunb\AppData\Local\fnm_multishells\27868_1763104344985\pnpm.CMD
  Deno: 2.4.0 - C:\Users\hyunb\.deno\bin\deno.EXE
Browsers:
  Chrome: 142.0.7444.135
  Edge: Chromium (140.0.3485.54)
  Firefox: 145.0 - C:\Program Files\Mozilla Firefox\firefox.exe
npmPackages:
  @sveltejs/adapter-cloudflare: ^7.2.4 => 7.2.4
  @sveltejs/kit: ^2.47.1 => 2.48.5
  @sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1
  svelte: ^5.41.0 => 5.43.6
  vite: ^7.1.10 => 7.2.2

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions