This commit is contained in:
Adam 2024-01-26 20:47:00 -05:00
parent a918e8f7f7
commit 7af51932ff

View file

@ -2,7 +2,7 @@ use app::*;
use axum::Router;
use fileserv::file_and_error_handler;
use leptos::*;
use leptos_axum::{build_static_routes, generate_route_list_with_exclusions_and_ssg, LeptosRoutes};
use leptos_axum::{generate_route_list, LeptosRoutes};
pub mod fileserv;
@ -11,8 +11,7 @@ async fn main() {
let conf = get_configuration(None).await.unwrap();
let leptos_options = conf.leptos_options;
let addr = leptos_options.site_addr;
let (routes, data) = generate_route_list_with_exclusions_and_ssg(App, None);
build_static_routes(&leptos_options, App, &routes, data).await;
let routes = generate_route_list(App);
let app = Router::new()
.leptos_routes(&leptos_options, routes, App)