Skip to content

Commit

Permalink
Updated for workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
CorvusPrudens committed Dec 3, 2023
1 parent 238d200 commit 48a88d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aws-lambda"
name = "leptos-start-aws"
version = "0.1.0"
edition = "2021"

Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn App() -> impl IntoView {

// injects a stylesheet into the document <head>
// id=leptos means cargo-leptos will hot-reload this stylesheet
<Stylesheet id="leptos" href="/pkg/aws-lambda.css"/>
<Stylesheet id="leptos" href="/pkg/leptos-start-aws.css"/>

// sets the document title
<Title text="Welcome to Leptos"/>
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 48a88d3

Please sign in to comment.