Compare commits
No commits in common. "e6ba5433e27d436e35b9fc3719bc6ce6b2ca537e" and "cac342bdc5478198b112b09976d4e16c9b265062" have entirely different histories.
e6ba5433e2
...
cac342bdc5
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1149,7 +1149,6 @@ dependencies = [
|
||||
"config",
|
||||
"image",
|
||||
"serde",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
@ -19,6 +19,5 @@ config = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
image = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
tracing = { workspace = true }
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -17,9 +17,7 @@ impl AppAvatar {
|
||||
pub async fn init(cfg: &AppConfig) -> anyhow::Result<Self> {
|
||||
let path = cfg.avatar_path()?;
|
||||
if std::fs::read_dir(&path).is_err() {
|
||||
if let Err(e) = std::fs::create_dir_all(&path) {
|
||||
tracing::warn!(path = %path, error = %e, "Avatar directory not available, avatars disabled");
|
||||
}
|
||||
std::fs::create_dir_all(&path)?;
|
||||
}
|
||||
let basic_path = PathBuf::from(path);
|
||||
Ok(Self { basic_path })
|
||||
|
||||
@ -2,6 +2,7 @@ import path from "path"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import {defineConfig, type Plugin} from "vite"
|
||||
import {analyzer} from 'vite-bundle-analyzer'
|
||||
|
||||
function tailwindEscapeFix(): Plugin {
|
||||
return {
|
||||
@ -16,7 +17,7 @@ function tailwindEscapeFix(): Plugin {
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), tailwindEscapeFix(), react()],
|
||||
plugins: [tailwindcss(), tailwindEscapeFix(), react(), analyzer()],
|
||||
optimizeDeps: {
|
||||
entries: ["src/**/*.{ts,tsx}"],
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user