Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional file type application/wasm to AbstractAspNetCoreFunction.cs #1786

Closed
2 tasks
genifycom opened this issue Aug 6, 2024 · 3 comments
Closed
2 tasks
Assignees
Labels
feature-request A feature should be added or improved. module/aspnetcore-support p2 This is a standard priority issue queued

Comments

@genifycom
Copy link

Describe the feature

Please can you add application/wasm to AbstractAspNetCoreFunction.cs

This is to allow a DotNet Lambda function to serve up wasm files for WebAssembly.

For reference, see #1781

Thank you.

Use Case

So that Dotnet Lambda Blazor can operate in SSR or CSR mode.

Proposed Solution

No response

Other Information

The workaround currently is to add to lambdaEntryPoint

protected override void Init(IHostBuilder builder)
{
    base.RegisterResponseContentEncodingForContentType("application/wasm", Amazon.Lambda.AspNetCoreServer.ResponseContentEncoding.Base64);
}

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Standard Lambda Serverless application under DotNet 8

Targeted .NET Platform

.NET 8

Operating System and version

Windows 11

@genifycom genifycom added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 6, 2024
@normj
Copy link
Member

normj commented Aug 6, 2024

This valid to add. If you want to submit a PR that adds the content type that would help get this released sooner.

@bhoradc bhoradc added module/aspnetcore-support p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Aug 6, 2024
@bhoradc bhoradc added the queued label Aug 19, 2024
@ashishdhingra ashishdhingra self-assigned this Aug 20, 2024
@ashishdhingra
Copy link
Contributor

Changes merged to dev. It would be released along with other changes that would be queued shortly.

Copy link
Contributor

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. module/aspnetcore-support p2 This is a standard priority issue queued
Projects
None yet
Development

No branches or pull requests

4 participants