You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On your website you claim that Loco has a "one file deployment", but when using the API + frontend option then the frontend is not embedded in the binary. Thus, you always have to deploy the folder dist/frontend next to your binary.
Please add an option to embed the frontend files in the binary. Preferably, this should be implemented in a middleware. There should be a feature flag to enable this behaviour.
Workaround
In my own app I used rust-embed in a controller to embed the files. You find an example code in Discussion #1255 .
Existing implementations
Here is a list of libraries I've found when implementing my workaround:
Feature Request
On your website you claim that Loco has a "one file deployment", but when using the API + frontend option then the frontend is not embedded in the binary. Thus, you always have to deploy the folder
dist/frontend
next to your binary.Please add an option to embed the frontend files in the binary. Preferably, this should be implemented in a middleware. There should be a feature flag to enable this behaviour.
Workaround
In my own app I used
rust-embed
in a controller to embed the files. You find an example code in Discussion #1255 .Existing implementations
Here is a list of libraries I've found when implementing my workaround:
The text was updated successfully, but these errors were encountered: