diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 0b01ec1f274fab0..a1412be049d61df 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -16,7 +16,15 @@ Wrangler optionally uses a configuration file to customize the development and d :::note -As of Wrangler v3.91.0 Wrangler supports both JSON (`wrangler.json` or `wrangler.jsonc`) and TOML (`wrangler.toml`) for its configuration file. Prior to that version, only `wrangler.toml` was supported. The format of Wrangler's configuration file is exactly the same across both languages, except that the syntax is `JSON` rather than `TOML`. Throughout this page and the rest of Cloudflare's documentation config snippets are provided as both JSON and TOML. +As of Wrangler v3.91.0 Wrangler supports both JSON (`wrangler.json` or `wrangler.jsonc`) and TOML (`wrangler.toml`) for its configuration file. + +Prior to that version, only `wrangler.toml` was supported. + +The format of Wrangler's configuration file is exactly the same across both languages, only the syntax differs. + +You can use one of the many available online converters to easily switch between the two. + +Throughout this page and the rest of Cloudflare's documentation, configuration snippets are provided as both JSON and TOML. ::: @@ -1299,17 +1307,17 @@ A common example of using a redirected configuration is where a custom build too - ```toml title="wrangler.toml" - name = "my-worker" - main = "src/index.ts" - [[kv_namespaces]] - binding = "" - id = "" - ``` - +```toml title="wrangler.toml" +name = "my-worker" +main = "src/index.ts" +[[kv_namespaces]] +binding = "" +id = "" +``` + - Note that this configuration points `main` at the user's code entry-point. +Note that this configuration points `main` at the user's code entry-point. - Then, the user runs a custom build, which might read the user's Wrangler configuration file to find the source code entry-point: