Leptos SSR app
Has anyone tried to run a leptos SSR app from a worker or from pages? It seems easy enough to run the server side code from a worker but how do you include static files like css?
13 Replies
Pages also support wasm on the server but there's no native rust support so it would probably require quite some work to set up.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Clever, but sounds a bit inconvenient.
There's also worker sites but it looks deprecated.
Workers, pages, functions, sites. The product lineup is getting a little confusing.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Makes sense. They're all static hosting and/or serverless compute.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
I'll have to check how that works with tailwind and
cargo leptos
.
I found one example that uses kv to store the files.I'm using Dominator for frontend (on pages)... SPA though, no SSR
(i.e. it just deploys to pages as any other static site, no dynamic serverside html etc.)
I wanted to give leptos server functions a try
At work we use remix and I really dislike that everything get converted to json when passing data to the client. Leptos seems to have found a nice solution to that.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Do you incur additional latency that way?
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Someone just posted this on Reddit: https://github.com/DylanRJohnston/leptos-cloudflare-example
GitHub
GitHub - DylanRJohnston/leptos-cloudflare-example: Example of getti...
Example of getting Leptos SSR working with Cloudflare Pages - DylanRJohnston/leptos-cloudflare-example