Option to embedding frontend application #348
felipesere
started this conversation in
General
Replies: 1 comment 1 reply
-
Did you check the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 I know there is some discussion about picking the right frontend framework, but I wanted to side-step it and talk about
embedding the files directly into my final binary.
While I'm happy to have external config to my binary, I consider the frontend to be a tight part of it and I'd like to not have to think about how to ship it along my app. Docker technically helps, but there are also nice crates such as
rust-embed
that make producing a single binary easier.At least so I thought!
At the moment,
loco
tightly wraps theaxum::Router
and I can't add a fallback_route of my own.The only path is through the static asset middleware...
Is there interest in maybe swapping how static assets are handled (i.e. embedding them) or opening up this avenue for customization (i.e. access the underlying
axum::Router
?Beta Was this translation helpful? Give feedback.
All reactions