Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leptos Book Enhancement Proposal: Add Spin serverless WASM/WASI framework as a deployment option for CSR apps #2032

Closed
diversable opened this issue Nov 16, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@diversable
Copy link
Contributor

diversable commented Nov 16, 2023

I've been exploring options for deploying Leptos apps, and one option that has seen some traction in prior issues (both in the Leptos issue tracker and the Spin issue tracker) has been deploying Leptos apps to Fermyon's Spin serverless WASM/WASI platform.

This is currently only possible for Leptos CSR apps; I currently have a working CSR 'getting started' example now, and will develop an SSR example as well.

The example repo can be found here: https://github.com/diversable/leptos-with-spin

So, I propose adding a small section to the "Deployment" chapter that opens up the possibility of deploying CSR apps to Spin.

This could either 1) take the form of adding a link to the example repo I have, or 2) we could refactor the "Deployment" chapter into 2 sub-chapters - 1 sub-chapter dealing with deploying CSR apps, and 1 sub-chapter for deploying SSR apps.

Does the community have any thoughts on which route we should take?

  1. just post the link to the example repo
  2. refactor the "Deployment" chapter to separate CSR app deployment from SSR app deployment
  3. neither of the above

Please let me know!

@gbj gbj added the documentation Improvements or additions to documentation label Nov 18, 2023
@gbj
Copy link
Collaborator

gbj commented Nov 18, 2023

I'm fine with either idea, given that 2 is probably better long term but 1 is very easy to do.

Feel free to make a PR for either one.

AFAIK Spin should now work with Leptos SSR but there's not an existing template or integration to do so.

@diversable
Copy link
Contributor Author

issue moved to new leptos-rs/book repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants