yank ssg
This commit is contained in:
parent
a918e8f7f7
commit
7af51932ff
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue