use cargo_leptos::config::Commands::Build;
use cargo_leptos::config::{Cli, Opts};
use cargo_leptos::run;
const BUILD_TARGET: &'static str = "x86_64-unknown-linux-musl";
pub async fn build(mut cargo_leptos_opts: Opts) -> anyhow::Result<()> {
run(Cli {
manifest_path: None,
log: vec![],
command: Build(cargo_leptos_opts),
})
.await
.map_err(|e| anyhow::anyhow!(e))
}