Skip to content

Commit

Permalink
Pre-compress and embed assets in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnclusions committed Aug 3, 2024
1 parent 9162fc8 commit 2a85e9d
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 88 deletions.
213 changes: 156 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ thiserror = "1"
tracing = { version = "0.1" }
tokio = { version = "1.33.0", features = ["full"] }
tower = { version = "0.4.13", features = ["full"] }
tower-http = { version = "0.5", features = ["full"] }
tower-http = { version = "0.5", features = ["fs", "compression-gzip", "compression-br"] }
uuid = { version = "1.9.0", features = [
"v4",
"serde",
Expand All @@ -53,7 +53,7 @@ lib-package = "frontend"

# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup.
site-root = "target/site"
hash-files = false
hash-files = true

# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
# Defaults to pkg
Expand Down
2 changes: 1 addition & 1 deletion app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn Dashboard() -> impl IntoView {

use qbittorrent_rs_sse::sse_sync_maindata;
// Create sse signal
let data = sse_sync_maindata("http://localhost:3010/sse");
let data = sse_sync_maindata("/sse");

view! {
<div>Count: {move || { view! { <div>
Expand Down
Loading

0 comments on commit 2a85e9d

Please sign in to comment.