Skip to content

Commit 817fa80

Browse files
committed
Update toml files
1 parent 4966c81 commit 817fa80

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

discounts/rust/discount/default/shopify.extension.toml.liquid

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ api_version = "unstable"
22

33
[[extensions]]
44
name = "t:name"
5-
handle = "{{handle}}"
5+
handle = "{{handle | replace: " ", "-" | downcase}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}
88
description = "t:description"
@@ -19,7 +19,7 @@ description = "t:description"
1919

2020
[extensions.build]
2121
command = "cargo build --target=wasm32-wasip1 --release"
22-
path = "target/wasm32-wasip1/release/discount-function-rust.wasm/{{handle | replace: " ", "-" | downcase}}.wasm"
22+
path = "{{handle | replace: " ", "-" | downcase}}.wasm"
2323
watch = [ "src/**/*.rs" ]
2424

2525
[extensions.ui]

discounts/rust/network/default/shopify.extension.toml.liquid

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ api_version = "unstable"
22

33
[[extensions]]
44
name = "t:name"
5-
handle = "{{handle}}"
5+
handle = "{{handle | replace: " ", "-" | downcase}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}
88
description = "t:description"
@@ -29,8 +29,5 @@ description = "t:description"
2929

3030
[extensions.build]
3131
command = "cargo build --target=wasm32-wasip1 --release"
32-
path = "target/wasm32-wasip1/release/function-network-rust.wasm/{{handle | replace: " ", "-" | downcase}}.wasm"
32+
path = "{{handle | replace: " ", "-" | downcase}}.wasm"
3333
watch = [ "src/**/*.rs" ]
34-
35-
[extensions.ui]
36-
handle = "{{handle}}"

0 commit comments

Comments
 (0)