diff --git a/Cargo.toml b/Cargo.toml index c23cc58..c0adc6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "aws-lambda" +name = "leptos-start-aws" version = "0.1.0" edition = "2021" @@ -73,7 +73,7 @@ bin-profile-dev = "server-dev" lib-profile-dev = "wasm-dev" # The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name -output-name = "aws-lambda" +output-name = "leptos-start-aws" # The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup. site-root = "target/site" diff --git a/src/app.rs b/src/app.rs index 76529eb..33f2beb 100644 --- a/src/app.rs +++ b/src/app.rs @@ -12,7 +12,7 @@ pub fn App() -> impl IntoView { // injects a stylesheet into the document // id=leptos means cargo-leptos will hot-reload this stylesheet - + // sets the document title diff --git a/src/main.rs b/src/main.rs index 9b7c580..ffe500c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,12 @@ #[cfg(feature = "ssr")] #[tokio::main] async fn main() { - use aws_lambda::{app::*, fileserv::file_and_error_handler}; use axum::{routing::post, Router}; use leptos::*; use leptos_axum::{generate_route_list, LeptosRoutes}; + use leptos_start_aws::{app::*, fileserv::file_and_error_handler}; - simple_logger::init_with_level(log::Level::Debug) - .expect("couldn't initialize logging"); + simple_logger::init_with_level(log::Level::Debug).expect("couldn't initialize logging"); // Setting get_configuration(None) means we'll be using cargo-leptos's env values // For deployment these variables are: