diff --git a/templates/hello-world/wrangler.jsonc b/templates/hello-world/wrangler.jsonc new file mode 100644 index 00000000..d41d5789 --- /dev/null +++ b/templates/hello-world/wrangler.jsonc @@ -0,0 +1,9 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "{{project-name}}", + "main": "build/index.js", + "compatibility_date": "{{ "now" | date: "%Y-%m-%d" }}", + "build": { + "command": "cargo install -q \"worker-build@^0.8\" && worker-build --release{% if panic_unwind %} --panic-unwind{% endif %}", + } +} diff --git a/templates/hello-world/wrangler.toml b/templates/hello-world/wrangler.toml deleted file mode 100644 index 30fc1a9f..00000000 --- a/templates/hello-world/wrangler.toml +++ /dev/null @@ -1,6 +0,0 @@ -name = "{{project-name}}" -main = "build/index.js" -compatibility_date = "{{ "now" | date: "%Y-%m-%d" }}" - -[build] -command = "cargo install -q \"worker-build@^0.8\" && worker-build --release{% if panic_unwind %} --panic-unwind{% endif %}" \ No newline at end of file