@@ -19,7 +19,7 @@ and [NGINX Unit](https://unit.nginx.org/).
1919
2020Prerequisites:
2121
22- - [ Rust] ( https://www.rust-lang.org/ ) at [ 1.72+] ( https://www.rust-lang.org/tools/install ) with the ` wasm32-wasi ` target configured
22+ - [ Rust] ( https://www.rust-lang.org/ ) at [ 1.72+] ( https://www.rust-lang.org/tools/install ) with the ` wasm32-wasip1 ` target configured
2323- [ cargo-component] ( https://github.com/bytecodealliance/cargo-component )
2424- [ Spin v2.0] ( https://github.com/fermyon/spin ) to run the component/examples
2525
@@ -36,7 +36,7 @@ See the [examples](./examples) directory for examples of using and composing `sp
3636Prerequisites:
3737
3838- [ Rust] ( https://www.rust-lang.org/ ) at
39- [ 1.72+] ( https://www.rust-lang.org/tools/install ) with the ` wasm32-wasi ` target
39+ [ 1.72+] ( https://www.rust-lang.org/tools/install ) with the ` wasm32-wasip1 ` target
4040 configured
4141
4242Running test cases:
@@ -84,7 +84,7 @@ component = "fs"
8484
8585# For more on configuring a component, see: https://developer.fermyon.com/spin/writing-apps
8686[component .fs ]
87- source = " target/wasm32-wasi /release/spin_static_fs.wasm"
87+ source = " target/wasm32-wasip1 /release/spin_static_fs.wasm"
8888files = [{ source = " " , destination = " /" }]
8989[component .fs .build ]
9090command = " make"
@@ -145,7 +145,7 @@ is useful for Single Page Applications that use view routers on the front-end li
145145``` toml
146146# For more on configuring a component, see: https://developer.fermyon.com/spin/writing-apps#adding-environment-variables-to-components
147147[component .fs ]
148- source = " target/wasm32-wasi /release/spin_static_fs.wasm"
148+ source = " target/wasm32-wasip1 /release/spin_static_fs.wasm"
149149files = [{ source = " test" , destination = " /" }]
150150environment = { FALLBACK_PATH = " index.html" }
151151```
@@ -157,7 +157,7 @@ You can configure a `CUSTOM_404_PATH` environment variable and point to a file t
157157``` toml
158158# For more on configuring a component, see: https://developer.fermyon.com/spin/writing-apps#adding-environment-variables-to-components
159159[component .fs ]
160- source = " target/wasm32-wasi /release/spin_static_fs.wasm"
160+ source = " target/wasm32-wasip1 /release/spin_static_fs.wasm"
161161files = [{ source = " test" , destination = " /" }]
162162environment = { CUSTOM_404_PATH = " 404.html" }
163163```
0 commit comments