Skip to content

Commit 470f24b

Browse files
fixup! create a wrangler.toml file for the user in case one is not already present
remove wrangler.jsonc problematic trailing commas
1 parent 4ed2a26 commit 470f24b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.prettierrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@
44
"semi": true,
55
"useTabs": false,
66
"tabWidth": 2,
7-
"trailingComma": "es5"
7+
"trailingComma": "es5",
8+
"overrides": [
9+
{
10+
"// comment": "wrangler doesn't seem to accept wrangler.jsonc with trailing commas",
11+
"files": ["**/wrangler.jsonc"],
12+
"options": {
13+
"trailingComma": "none"
14+
}
15+
}
16+
]
817
}

packages/cloudflare/templates/defaults/wrangler.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compatibility_flags": ["nodejs_compat"],
66
"assets": {
77
"directory": ".open-next/assets",
8-
"binding": "ASSETS",
8+
"binding": "ASSETS"
99
},
1010
"kv_namespaces": [
1111
// Create a KV binding with the binding name "NEXT_CACHE_WORKERS_KV"
@@ -14,5 +14,5 @@
1414
// "binding": "NEXT_CACHE_WORKERS_KV",
1515
// "id": "<BINDING_ID>"
1616
// }
17-
],
17+
]
1818
}

0 commit comments

Comments
 (0)