You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/wrangler/configuration.mdx
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ As of Wrangler v3.91.0 Wrangler supports both JSON (`wrangler.json` or `wrangler
21
21
Prior to that version, only `wrangler.toml` was supported.
22
22
23
23
The format of Wrangler's configuration file is exactly the same across both languages, only the syntax differs.
24
-
You can also easily switch between the two, there are many online converters for that such as: [toml2jsonConverter](https://esakat.github.io/toml2jsonConverter).
24
+
25
+
You can use one of the many available online converters to easily switch between the two.
25
26
26
27
Throughout this page and the rest of Cloudflare's documentation, configuration snippets are provided as both JSON and TOML.
27
28
@@ -1306,17 +1307,17 @@ A common example of using a redirected configuration is where a custom build too
1306
1307
1307
1308
<WranglerConfig>
1308
1309
1309
-
```toml title="wrangler.toml"
1310
-
name = "my-worker"
1311
-
main = "src/index.ts"
1312
-
[[kv_namespaces]]
1313
-
binding = "<BINDING_NAME1>"
1314
-
id = "<NAMESPACE_ID1>"
1315
-
```
1316
-
1310
+
```toml title="wrangler.toml"
1311
+
name = "my-worker"
1312
+
main = "src/index.ts"
1313
+
[[kv_namespaces]]
1314
+
binding = "<BINDING_NAME1>"
1315
+
id = "<NAMESPACE_ID1>"
1316
+
```
1317
+
1317
1318
</WranglerConfig>
1318
1319
1319
-
Note that this configuration points `main` at the user's code entry-point.
1320
+
Note that this configuration points `main` at the user's code entry-point.
1320
1321
1321
1322
- Then, the user runs a custom build, which might read the user's Wrangler configuration file to find the source code entry-point:
0 commit comments