Skip to content

Commit

Permalink
sst.aws.Function: fix for "runtime and handler must be defined when c…
Browse files Browse the repository at this point in the history
…ode is zip"
  • Loading branch information
thdxr committed Oct 5, 2024
1 parent 8f4e5a7 commit 4f98b2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,10 @@ export class Function extends Component implements Link.Linkable {
concurrency,
dev,
]) => {
// This is a hack to avoid handler being marked as having propertyDependencies.
// There is an unresolved bug in pulumi that causes issues when it does
// @ts-expect-error
handler.allResources = () => Promise.resolve(new Set());
const transformed = transform(
args.transform?.function,
`${name}Function`,
Expand Down

0 comments on commit 4f98b2f

Please sign in to comment.