Skip to content

Commit

Permalink
Work around cloud issue with two triggers pointing to same component
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson committed Nov 4, 2024
1 parent 90f3666 commit 51bacee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ route = "/spin/v2/..."

[[trigger.http]]
id = "trigger-bartholomew-spin-v3"
component = "bartholomew-spin-v2"
component = "bartholomew-spin-v3"
route = "/spin/v3/..."

[[trigger.http]]
Expand Down Expand Up @@ -367,3 +367,9 @@ files = ["content/**/*", "templates/*", "scripts/*", "config/*", "shortcodes/*"]
[component.bartholomew-spin-v2.build]
command = "npm run build-index && npm run build-hub-index"
watch = ["content/**/*", "templates/*"]

[component.bartholomew-spin-v3]
# Using build from bartholomew main
source = "modules/bartholomew.wasm"
environment = { PREVIEW_MODE = "0" }
files = ["content/**/*", "templates/*", "scripts/*", "config/*", "shortcodes/*"]

0 comments on commit 51bacee

Please sign in to comment.