amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

allow importing html files to functions

Open josefaidt opened this issue 3 months ago • 1 comments

Problem

I am unable to import html files into my Lambda functions to send emails from my Cognito trigger(s)

Issue number, if available:

Changes

adds the "text" loader for html files in the function bundling settings https://esbuild.github.io/content-types/#text

Corresponding docs PR, if applicable:

Validation

Checklist

  • [ ] If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • [ ] If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • [ ] If this PR requires a docs update, I have linked to that docs PR above.
  • [ ] If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

josefaidt avatar Aug 13 '25 15:08 josefaidt