generated from alecodes/base-template
refactor: change assets handling to vite-rs
chore: update dev environment wip: handle vite tooling manually
This commit is contained in:
parent
14a4d9b2b3
commit
af709f2e72
26 changed files with 406 additions and 389 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue