Fix assets folder workspace (#2821)

* Fix the asset folder location in workspaces

* Fix where the asset folder is copied to in fullstack builds
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-08-12 12:52:33 -07:00
1 parent 0bb81aba6e
commit f10ba975ba
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ impl BuildRequest {
pub fn copy_assets_dir(&self) -> anyhow::Result<()> {
tracing::info!("Copying public assets to the output directory...");
let out_dir = self.dioxus_crate.out_dir();
let out_dir = self.target_out_dir();
let asset_dir = self.dioxus_crate.asset_dir();
if asset_dir.is_dir() {
+1 -1
View File
@@ -180,7 +180,7 @@ impl DioxusCrate {
/// Compose an asset directory. Represents the typical "public" directory
/// with publicly available resources (configurable in the `Dioxus.toml`).
pub fn asset_dir(&self) -> PathBuf {
self.workspace_dir()
self.crate_dir()
.join(&self.dioxus_config.application.asset_dir)
}