fix: only run the pending migrations on server
This commit is contained in:
@ -17,7 +17,9 @@ fn main() {
|
||||
dioxus_logger::init(Level::INFO).expect("Failed to initialize the logger.");
|
||||
|
||||
info!("Running migrations.");
|
||||
migrations::run_migrations().expect("Failed to run migrations.");
|
||||
server_only!(
|
||||
migrations::run_migrations().expect("Failed to run migrations.");
|
||||
);
|
||||
|
||||
info!("Starting app.");
|
||||
let cfg = server_only!(
|
||||
|
Reference in New Issue
Block a user