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

Commit

Permalink
wip: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 7, 2024
1 parent af8a692 commit 8f447c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ export class Function extends Component implements Link.Linkable {
handler: args.handler,
bundle: args.bundle,
runtime,
links: linkData.apply((input) =>
links: output(linkData).apply((input) =>
Object.fromEntries(input.map((item) => [item.name, item.properties])),
),
copyFiles,
Expand All @@ -1199,6 +1199,7 @@ export class Function extends Component implements Link.Linkable {

buildInput.apply(async (input) => {
if (!input.dev) return;
console.log(input);
await rpc.call("Runtime.AddTarget", input);
});

Expand Down Expand Up @@ -1460,7 +1461,10 @@ export class Function extends Component implements Link.Linkable {
}
return result;
});
return buildResult;
return {
handler: buildResult.handler,
out: buildResult.out,
};
}

if (args.bundle) {
Expand Down

0 comments on commit 8f447c4

Please sign in to comment.