Move LibreTunes files from assets/ to public/
Some checks failed
Push Workflows / rustfmt (push) Successful in 7s
Push Workflows / docker-build (push) Failing after 19s
Push Workflows / mdbook (push) Successful in 9s
Push Workflows / mdbook-server (push) Successful in 20s
Push Workflows / docs (push) Successful in 39s
Push Workflows / test (push) Successful in 1m32s
Push Workflows / build (push) Successful in 2m18s
Push Workflows / clippy (push) Successful in 43s
Push Workflows / leptos-test (push) Successful in 1m24s
Push Workflows / nix-build (push) Successful in 5m17s

This commit is contained in:
2025-10-14 10:45:11 -04:00
parent 35b825d350
commit 084ab07c25
5 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -12,6 +12,9 @@ test-results/
end2end/playwright-report/
playwright/.cache/
# Default asset serve directory
assets/
# Audio files
*.mp3
*.wav

View File

@@ -148,7 +148,7 @@ tailwind-config-file = "style/tailwind.config.js"
# The assets-dir cannot have a sub directory with the same name/path as site-pkg-dir.
#
# Optional. Env: LEPTOS_ASSETS_DIR.
assets-dir = "assets"
assets-dir = "public"
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
site-addr = "127.0.0.1:3000"
# The port to use for automatic reload monitoring

View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -11,7 +11,7 @@ cfg_if::cfg_if! {
pub const IMAGE_WEB_PATH: &str = "/assets/images";
pub const AUDIO_WEB_PATH: &str = "/assets/audio";
pub const MUSIC_PLACEHOLDER_WEB_PATH: &str = "/assets/images/placeholders/MusicPlaceholder.svg";
pub const MUSIC_PLACEHOLDER_WEB_PATH: &str = "/placeholders/MusicPlaceholder.svg";
#[cfg(feature = "ssr")]
/// Generate a random path for storing a new file