From 7af51932ff7a4e2ec4c338852230130839ba1d2d Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Fri, 26 Jan 2024 20:47:00 -0500 Subject: [PATCH] yank ssg --- server/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index e375937..6c8176f 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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)