Replies: 3 comments 9 replies
-
Some logs:
|
Beta Was this translation helpful? Give feedback.
-
I'm specially curious about the |
Beta Was this translation helpful? Give feedback.
-
So, I haven't ever really used AWS lambdas so I might not be very useful. The HTML you put in your first post is very clearly a Leptos app rendering a 404 page; don't know more about your setup, but this is coming from some Leptos code, not a vendor 404 (see the Some of the logs are clearly set to levels too high inside Leptos (yikes) The |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I have been using
leptos
for a personal project at Amazon, trying at the same time to get a better grasp of Web development in Rust. So far, local development has been great, loved havingcargo-leptos
for hot-reloading and more.Once I had something quick locally (just a main page), wanted to move to deploy it in a Lambda, and I was able to do so, by using
cargo-leptos
andcargo-lambda
with the examplestart-aws
. No issue there. The question comes around understanding what are the routes being defined when deployed this way.When running
cargo leptos watch
, my localhost on the main path shows the HomePage and I would expect it to be the same way when deploying to Lambda. To avoid the XY Problem:I have a Route53 domain connected to an API Gateway that connects to the Lambda I deployed with my Leptos code base. When contacting the Route53 domain (also tested the API Gateway directly), I see that the Lambda is invoked, but it returns an 404 page.
Following that set up, I thought that Leptos would set up the "" route to be pointing to the HomePage (haven't modified that, it's part of the
start-aws
example), hence the connection directly with aGET
method to the root method would return that page.Any guidance / pointers? I'll keep investigating whether the API Gateway is changing the method to contact the Lambda.
Beta Was this translation helpful? Give feedback.
All reactions