Skip to content

Commit

Permalink
Add v3 to version drop-down
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson committed Oct 8, 2024
1 parent 8dd50f8 commit d810bb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ environment = { DESTINATION = "/wasm-languages/webassembly-language-support" }
# Component to give us clean versioned URLs for spin from the root
[component.spin-version-proxy]
source = "modules/spin-redirecter.wasm"
variables = { latest_spin_version = "v2" }
variables = { latest_spin_version = "v3" }
files = ["spin-redirect.json"]
exclude_files = ["**/node_modules"]
allowed_outbound_hosts = ["http://self"]
Expand Down
4 changes: 3 additions & 1 deletion templates/spin_main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
{{! This adds the version selector - uncomment after v2 launch }}
<select class="version-dropdown"
onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
<option value="/spin/v2/index">Spin v2.x</option>
<option value="/spin/v3/index">Spin v3.x</option>
<option value="/spin/v2/index" {{#if (active_project request.spin-full-url "/spin/v2/" )}} selected
{{/if}}>Spin v2.x</option>
<option value="/spin/v1/index" {{#if (active_project request.spin-full-url "/spin/v1/" )}} selected
{{/if}}>Spin v1.x</option>
</select>
Expand Down

0 comments on commit d810bb6

Please sign in to comment.