Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix: create handler wrapper only for nodejs functions (#1067)
Browse files Browse the repository at this point in the history
This commit fixes issue where AWS Function with the `provided.al2023`
runtime and link resources tried to create the JavaScript based handler
wrapper for injecting the resources.
  • Loading branch information
Henkru authored Oct 18, 2024
1 parent 28a95ce commit 72a4d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ export class Function extends Component implements Link.Linkable {
runtime,
]) => {
if (dev) return { handler };
if (runtime.startsWith("python")) {
if (!runtime.startsWith("nodejs")) {
return { handler };
}

Expand Down

0 comments on commit 72a4d3d

Please sign in to comment.