use rapid_web::actix::HttpServer; use rapid_web::rapid_web_codegen::{ main, rapid_configure_nextjs, routes }; use rapid_web::server::RapidServer; rapid_configure_nextjs!(); #[main] async fn main() -> std::io::Result<()> { let app = RapidServer::create(None, None); app.listen( HttpServer::new(move || { RapidServer::fs_router(None, None, routes!("pages/api/routes")) }) ).await }