@@ -24,11 +24,6 @@ id = "trigger-fileserver-downloads"
2424component = " fileserver-downloads"
2525route = " /downloads/..."
2626
27- [[trigger .http ]]
28- id = " trigger-redirect-spin-index"
29- component = " redirect-spin-index"
30- route = " /spin"
31-
3227[[trigger .http ]]
3328id = " trigger-redirect-cloud-index"
3429component = " redirect-cloud-index"
@@ -139,26 +134,6 @@ id = "trigger-serverless-ai"
139134component = " serverless-ai"
140135route = " /cloud/serverless-ai"
141136
142- [[trigger .http ]]
143- id = " trigger-spin-version-proxy"
144- component = " spin-version-proxy"
145- route = " /spin/..."
146-
147- [[trigger .http ]]
148- id = " trigger-bartholomew-spin-v1"
149- component = " bartholomew-spin-v1"
150- route = " /spin/v1/..."
151-
152- [[trigger .http ]]
153- id = " trigger-bartholomew-spin-v2"
154- component = " bartholomew-spin-v2"
155- route = " /spin/v2/..."
156-
157- [[trigger .http ]]
158- id = " trigger-bartholomew-spin-v3"
159- component = " bartholomew-spin-v3"
160- route = " /spin/v3/..."
161-
162137[[trigger .http ]]
163138id = " trigger-redirect-wasm-langs-root"
164139component = " redirect-wasm-langs-root"
@@ -184,6 +159,21 @@ id = "trigger-spin-kubernetes-known-issues"
184159component = " redirect-spin-kubernetes-known-issues"
185160route = " /spin/v2/kubernetes-known-issues"
186161
162+ [[trigger .http ]]
163+ id = " trigger-spin-deploying-to-fermyon"
164+ component = " redirect-spin-deploying-to-fermyon"
165+ route = " /spin/deploying-to-fermyon"
166+
167+ [[trigger .http ]]
168+ id = " trigger-spin-developing"
169+ component = " redirect-spin-developing"
170+ route = " /spin/developing"
171+
172+ [[trigger .http ]]
173+ id = " trigger-spin-wildcard-redirect-to-spinframework"
174+ component = " wildcard-redirect-to-spinframework"
175+ route = " /spin/..."
176+
187177[component .bartholomew ]
188178# Using build from bartholomew main
189179source = " modules/bartholomew.wasm"
@@ -202,11 +192,6 @@ files = [{ source = "static/", destination = "/" }]
202192source = " modules/spin_static_fs.wasm"
203193files = [{ source = " downloads/" , destination = " /" }]
204194
205- # Redirect /spin to /spin/index
206- [component .redirect-spin-index ]
207- source = " modules/redirect.wasm"
208- environment = { DESTINATION = " /spin/index" }
209-
210195# Redirect /cloud to /cloud/index
211196[component .redirect-cloud-index ]
212197source = " modules/redirect.wasm"
@@ -217,90 +202,90 @@ environment = { DESTINATION = "/cloud/index" }
217202source = " modules/redirect.wasm"
218203environment = { DESTINATION = " /bartholomew/index" }
219204
220- # Redirect /spin/rust-components/http-trigger to /spin /http-trigger
205+ # Redirect /spin/rust-components/http-trigger to https://spinframework.dev /http-trigger
221206[component .redirect-spin-rust-components-http-trigger ]
222207source = " modules/redirect.wasm"
223- environment = { DESTINATION = " https://developer.fermyon.com/spin/ http-trigger" }
208+ environment = { DESTINATION = " https://spinframework.dev/ http-trigger" , STATUSCODE = " 301 " }
224209
225- # Redirect /spin/contributing/extending-and-embedding to /spin /extending-and-embedding
210+ # Redirect /spin/contributing/extending-and-embedding to https://spinframework.dev /extending-and-embedding
226211[component .spin-contributing-extending-and-embedding ]
227212source = " modules/redirect.wasm"
228- environment = { DESTINATION = " https://developer.fermyon.com/spin/ extending-and-embedding" }
213+ environment = { DESTINATION = " https://spinframework.dev/ extending-and-embedding" , STATUSCODE = " 301 " }
229214
230- # Redirect /spin/rust-components/redis-trigger to /spin /redis-trigger
215+ # Redirect /spin/rust-components/redis-trigger to https://spinframework.dev /redis-trigger
231216[component .spin-rust-components-redis-trigger ]
232217source = " modules/redirect.wasm"
233- environment = { DESTINATION = " https://developer.fermyon.com/spin/ redis-trigger" }
218+ environment = { DESTINATION = " https://spinframework.dev/ redis-trigger" , STATUSCODE = " 301 " }
234219
235- # Redirect /spin/configuration to /spin /writing-apps
220+ # Redirect /spin/configuration to https://spinframework.dev /writing-apps
236221[component .spin-configuration ]
237222source = " modules/redirect.wasm"
238- environment = { DESTINATION = " https://developer.fermyon.com/spin/ writing-apps" }
223+ environment = { DESTINATION = " https://spinframework.dev/ writing-apps" , STATUSCODE = " 301 " }
239224
240- # Redirect /spin/configuration/http-trigger to /spin /http-trigger
225+ # Redirect /spin/configuration/http-trigger to https://spinframework.dev /http-trigger
241226[component .spin-configuration-http-trigger ]
242227source = " modules/redirect.wasm"
243- environment = { DESTINATION = " https://developer.fermyon.com/spin/ http-trigger" }
228+ environment = { DESTINATION = " https://spinframework.dev/ http-trigger" , STATUSCODE = " 301 " }
244229
245- # Redirect /spin/configuration/redis-trigger to /spin /redis-trigger
230+ # Redirect /spin/configuration/redis-trigger to https://spinframework.dev /redis-trigger
246231[component .spin-configuration-redis-trigger ]
247232source = " modules/redirect.wasm"
248- environment = { DESTINATION = " https://developer.fermyon.com/spin/ redis-trigger" }
233+ environment = { DESTINATION = " https://spinframework.dev/ redis-trigger" , STATUSCODE = " 301 " }
249234
250- # Redirect /spin/quickstart/developing to /spin /quickstart
235+ # Redirect /spin/quickstart/developing to https://spinframework.dev /quickstart
251236[component .spin-quickstart-developing ]
252237source = " modules/redirect.wasm"
253- environment = { DESTINATION = " https://developer.fermyon.com/spin /quickstart" }
238+ environment = { DESTINATION = " https://spinframework.dev /quickstart" }
254239
255- # Redirect /spin/quickstart/configuration to /spin /writing-apps
240+ # Redirect /spin/quickstart/configuration to https://spinframework.dev /writing-apps
256241[component .spin-quickstart-configuration ]
257242source = " modules/redirect.wasm"
258- environment = { DESTINATION = " https://developer.fermyon.com/spin/ writing-apps" }
243+ environment = { DESTINATION = " https://spinframework.dev/ writing-apps" , STATUSCODE = " 301 " }
259244
260- # Redirect /spin/quickstart/install to /spin /install
245+ # Redirect /spin/quickstart/install to https://spinframework.dev /install
261246[component .spin-quickstart-install ]
262247source = " modules/redirect.wasm"
263- environment = { DESTINATION = " https://developer.fermyon.com/spin/ install" }
248+ environment = { DESTINATION = " https://spinframework.dev/ install" , STATUSCODE = " 301 " }
264249
265- # Redirect /spin/quickstart/go-components to /spin /go-components
250+ # Redirect /spin/quickstart/go-components to https://spinframework.dev /go-components
266251[component .spin-quickstart-go-components ]
267252source = " modules/redirect.wasm"
268- environment = { DESTINATION = " https://developer.fermyon.com/spin/ go-components" }
253+ environment = { DESTINATION = " https://spinframework.dev/ go-components" , STATUSCODE = " 301 " }
269254
270- # Redirect /spin/quickstart/rust-components to /spin /rust-components
255+ # Redirect /spin/quickstart/rust-components to https://spinframework.dev /rust-components
271256[component .spin-quickstart-rust-components ]
272257source = " modules/redirect.wasm"
273- environment = { DESTINATION = " https://developer.fermyon.com/spin/ rust-components" }
258+ environment = { DESTINATION = " https://spinframework.dev/ rust-components" , STATUSCODE = " 301 " }
274259
275- # Redirect /spin/contributing/ to spin /contributing-spin
260+ # Redirect /spin/contributing/ to https://spinframework.dev /contributing-spin
276261[component .spin-contributing ]
277262source = " modules/redirect.wasm"
278- environment = { DESTINATION = " https://developer.fermyon.com/spin/ contributing-spin" }
263+ environment = { DESTINATION = " https://spinframework.dev/ contributing-spin" , STATUSCODE = " 301 " }
279264
280- # Redirect /spin/kv-store/ to spin /key-value-store-tutorial
265+ # Redirect /spin/kv-store/ to https://spinframework.dev /key-value-store-tutorial
281266[component .spin-kv-store-tutorial ]
282267source = " modules/redirect.wasm"
283- environment = { DESTINATION = " https://developer.fermyon.com/spin /kv-store-tutorial" }
268+ environment = { DESTINATION = " https://spinframework.dev /kv-store-tutorial" }
284269
285270# Redirecting from common to spin incase someone had it bookmarked before removal of common
286271[component .redirect-contributing-common-to-spin ]
287272source = " modules/redirect.wasm"
288- environment = { DESTINATION = " https://developer.fermyon.com/spin/ cli-reference" }
273+ environment = { DESTINATION = " https://spinframework.dev/ cli-reference" , STATUSCODE = " 301 " }
289274
290- # Redirect /spin/kubernetes-dynamic-configuration to /spin /kubernetes
275+ # Redirect /spin/kubernetes-dynamic-configuration to https://spinframework.dev /kubernetes
291276[component .redirect-spin-kubernetes-dynamic-configuration ]
292277source = " modules/redirect.wasm"
293- environment = { DESTINATION = " https://developer.fermyon.com/spin/ kubernetes" }
278+ environment = { DESTINATION = " https://spinframework.dev/ kubernetes" , STATUSCODE = " 301 " }
294279
295- # Redirect /spin/kubernetes-sidecars to /spin /kubernetes
280+ # Redirect /spin/kubernetes-sidecars to https://spinframework.dev /kubernetes
296281[component .redirect-spin-kubernetes-sidecars ]
297282source = " modules/redirect.wasm"
298- environment = { DESTINATION = " https://developer.fermyon.com/spin/ kubernetes" }
283+ environment = { DESTINATION = " https://spinframework.dev/ kubernetes" , STATUSCODE = " 301 " }
299284
300- # Redirect /spin/kubernetes-known-issues to /spin /kubernetes
285+ # Redirect /spin/kubernetes-known-issues to https://spinframework.dev /kubernetes
301286[component .redirect-spin-kubernetes-known-issues ]
302287source = " modules/redirect.wasm"
303- environment = { DESTINATION = " https://developer.fermyon.com/spin/ kubernetes" }
288+ environment = { DESTINATION = " https://spinframework.dev/ kubernetes" , STATUSCODE = " 301 " }
304289
305290[component .hub-fileserver-static ]
306291source = { url = " https://github.com/fermyon/spin-fileserver/releases/download/v0.0.2/spin_static_fs.wasm" , digest = " sha256:65456bf4e84cf81b62075e761b2b0afaffaef2d0aeda521b245150f76b96421b" }
@@ -311,30 +296,45 @@ files = [{ source = "spin-up-hub/dist/", destination = "/" }]
311296command = " npm run build"
312297workdir = " spin-up-hub"
313298
314- # Redirect /spin/spin-oci to /spin /registry-tutorial
299+ # Redirect /spin/spin-oci to https://spinframework.dev /registry-tutorial
315300[component .registry-tutorial ]
316301source = " modules/redirect.wasm"
317- environment = { DESTINATION = " https://developer.fermyon.com/spin/ registry-tutorial" }
302+ environment = { DESTINATION = " https://spinframework.dev/ registry-tutorial" , STATUSCODE = " 301 " }
318303
319- # Redirect /spin/url-shortener to /spin /url-shortener-tutorial
304+ # Redirect /spin/url-shortener to https://spinframework.dev /url-shortener-tutorial
320305[component .url-shortener-tutorial ]
321306source = " modules/redirect.wasm"
322- environment = { DESTINATION = " https://developer.fermyon.com/spin/ url-shortener-tutorial" }
307+ environment = { DESTINATION = " https://spinframework.dev/ url-shortener-tutorial" , STATUSCODE = " 301 " }
323308
324- # Redirect /spin/kv-store-tutorial to /spin /key-value-store-tutorial
309+ # Redirect /spin/kv-store-tutorial to https://spinframework.dev /key-value-store-tutorial
325310[component .key-value-store-tutorial ]
326311source = " modules/redirect.wasm"
327- environment = { DESTINATION = " https://developer.fermyon.com/spin/ key-value-store-tutorial" }
312+ environment = { DESTINATION = " https://spinframework.dev/ key-value-store-tutorial" , STATUSCODE = " 301 " }
328313
329- # Redirect /spin/serverless-ai-tutorial to /spin /ai-sentiment-analysis-api-tutorial
314+ # Redirect /spin/serverless-ai-tutorial to https://spinframework.dev /ai-sentiment-analysis-api-tutorial
330315[component .ai-sentiment-analysis-api-tutorial ]
331316source = " modules/redirect.wasm"
332- environment = { DESTINATION = " https://developer.fermyon.com/spin/ ai-sentiment-analysis-api-tutorial" }
317+ environment = { DESTINATION = " https://spinframework.dev/ ai-sentiment-analysis-api-tutorial" , STATUSCODE = " 301 " }
333318
334- # Redirect /cloud/serverless-ai to /spin /serverless-ai-hello-world
319+ # Redirect /cloud/serverless-ai to https://spinframework.dev /serverless-ai-hello-world
335320[component .serverless-ai ]
336321source = " modules/redirect.wasm"
337- environment = { DESTINATION = " https://developer.fermyon.com/spin/serverless-ai-hello-world.md" }
322+ environment = { DESTINATION = " https://spinframework.dev/serverless-ai-hello-world.md" , STATUSCODE = " 301" }
323+
324+ # Redirect /spin/deploying-to-fermyon to https://spinframework.dev/deploying
325+ [component .redirect-spin-deploying-to-fermyon ]
326+ source = " modules/redirect.wasm"
327+ environment = { DESTINATION = " https://spinframework.dev/deploying" , STATUSCODE = " 301" }
328+
329+ # Redirect /spin/developing to https://spinframework.dev/quickstart
330+ [component .redirect-spin-developing ]
331+ source = " modules/redirect.wasm"
332+ environment = { DESTINATION = " https://spinframework.dev/quickstart" , STATUSCODE = " 301" }
333+
334+ # Redirect /spin/... to spinframework.dev/...
335+ [component .wildcard-redirect-to-spinframework ]
336+ source = " modules/redirect.wasm"
337+ environment = { DESTINATION = " https://spinframework.dev" , STATUSCODE = " 301" , INCLUDE_PATH = " true" , TRIM_PREFIX = " /spin" }
338338
339339# Redirect /wasm-languages to /wasm-languages/webassembly-language-support
340340[component .redirect-wasm-langs-root ]
@@ -345,41 +345,3 @@ environment = { DESTINATION = "/wasm-languages/webassembly-language-support" }
345345[component .redirect-wasm-functions-root ]
346346source = " modules/redirect.wasm"
347347environment = { DESTINATION = " /wasm-functions/index" }
348-
349- # Component to give us clean versioned URLs for spin from the root
350- [component .spin-version-proxy ]
351- source = " modules/spin-redirecter.wasm"
352- variables = { latest_spin_version = " v3" }
353- files = [" spin-redirect.json" ]
354- exclude_files = [" **/node_modules" ]
355- allowed_outbound_hosts = [" http://self" ]
356- # Need to modify action to get the js2wasm plugin
357- # [component.build]
358- # workdir = "spin-redirecter"
359- # command = "npm install && npm run build"
360-
361- [component .bartholomew-spin-v1 ]
362- # Using build from bartholomew main
363- source = " modules/bartholomew.wasm"
364- environment = { PREVIEW_MODE = " 0" }
365- files = [" content/**/*" , " templates/*" , " scripts/*" , " config/*" , " shortcodes/*" ]
366-
367- [component .bartholomew-spin-v1 .build ]
368- command = " npm run build-index && npm run build-hub-index"
369- watch = [" content/**/*" , " templates/*" ]
370-
371- [component .bartholomew-spin-v2 ]
372- # Using build from bartholomew main
373- source = " modules/bartholomew.wasm"
374- environment = { PREVIEW_MODE = " 0" }
375- files = [" content/**/*" , " templates/*" , " scripts/*" , " config/*" , " shortcodes/*" ]
376-
377- [component .bartholomew-spin-v2 .build ]
378- command = " npm run build-index && npm run build-hub-index"
379- watch = [" content/**/*" , " templates/*" ]
380-
381- [component .bartholomew-spin-v3 ]
382- # Using build from bartholomew main
383- source = " modules/bartholomew.wasm"
384- environment = { PREVIEW_MODE = " 0" }
385- files = [" content/**/*" , " templates/*" , " scripts/*" , " config/*" , " shortcodes/*" ]
0 commit comments