@@ -104,10 +104,10 @@ id = "trigger-redirect-contributing-common-to-spin"
104
104
component = " redirect-contributing-common-to-spin"
105
105
route = " /common/cli-reference"
106
106
107
- # [[trigger.http]]
108
- # id = "trigger-hub-fileserver-static"
109
- # component = "hub-fileserver-static"
110
- # route = "/hub/..."
107
+ [[trigger .http ]]
108
+ id = " trigger-hub-fileserver-static"
109
+ component = " hub-fileserver-static"
110
+ route = " /hub/..."
111
111
112
112
[[trigger .http ]]
113
113
id = " trigger-registry-tutorial"
@@ -287,14 +287,14 @@ environment = { DESTINATION = "https://spinframework.dev/kubernetes", STATUSCODE
287
287
source = " modules/redirect.wasm"
288
288
environment = { DESTINATION = " https://spinframework.dev/kubernetes" , STATUSCODE = " 301" }
289
289
290
- # [component.hub-fileserver-static]
291
- # source = { url = "https://github.com/spinframework/spin-fileserver/releases/download/v0.0.2/spin_static_fs.wasm", digest = "sha256:65456bf4e84cf81b62075e761b2b0afaffaef2d0aeda521b245150f76b96421b" }
292
- # environment = { FALLBACK_PATH = "./index.html" }
293
- # files = [{ source = "spin-up-hub/dist/", destination = "/" }]
290
+ [component .hub-fileserver-static ]
291
+ source = { url = " https://github.com/spinframework/spin-fileserver/releases/download/v0.0.2/spin_static_fs.wasm" , digest = " sha256:65456bf4e84cf81b62075e761b2b0afaffaef2d0aeda521b245150f76b96421b" }
292
+ environment = { FALLBACK_PATH = " ./index.html" }
293
+ files = [{ source = " spin-up-hub/dist/" , destination = " /" }]
294
294
295
- # [component.hub-fileserver-static.build]
296
- # command = "npm run build"
297
- # workdir = "spin-up-hub"
295
+ [component .hub-fileserver-static .build ]
296
+ command = " npm run build"
297
+ workdir = " spin-up-hub"
298
298
299
299
# Redirect /spin/spin-oci to https://spinframework.dev/registry-tutorial
300
300
[component .registry-tutorial ]
0 commit comments