refactor: change assets handling to vite-rs

chore: update dev environment

wip: handle vite tooling manually
This commit is contained in:
Alexander Navarro 2025-04-21 20:14:07 -04:00
parent 14a4d9b2b3
commit af709f2e72
26 changed files with 406 additions and 389 deletions

View file

@ -17,7 +17,7 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
#[tokio::main]
async fn main() -> Result<()> {
let config = Config::new("./config.toml".into())?;
let assets = Assets::new();
let assets = Assets::new(&config)?;
// Logs
tracing_subscriber::registry()
@ -40,7 +40,7 @@ async fn main() -> Result<()> {
let (tx_state, tx_layer) = Tx::setup(pool);
let app = router::new()
let app = router::new(&config)
.layer(TraceLayer::new_for_http().on_request(()))
.layer(tx_layer)
.layer(AutoVaryLayer)