-
|
I've been trying to set up a simple Blazor web app to deploy to Lambda, but having some issues right off the bat. Wondering what I'm doing wrong. Following the instructions from this post https://toxigon.com/run-blazor-based-dotnet-web-applications-on-aws-serverless, I:
No matter what I do after that command, I get the same error trying to build or run. From this StackOverflow post, it would appear that the error means that one of my dependencies is not compatible with the So my question is, how do I host my Blazor app in a Lambda? I'm sure I'm doing something wrong as this seems like a pretty common use case. System information:$ dotnet --version
9.0.302 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The common issue I hear when attempting to deliver the wasm content from the Lambda function is making sure they are being identified as binary content. If you are using version |
Beta Was this translation helpful? Give feedback.
The common issue I hear when attempting to deliver the wasm content from the Lambda function is making sure they are being identified as binary content. If you are using version
9.0.1or later ofAmazon.Lambda.AspNetCoreServerit will automatically detect from it's side that wasm content type should be base 64 encoded. The other thing you need to make sure is that your API Gateway is configured for the wasm content type to return the data as binary data.