From 8f447c4711bf2c3bb628dd25f2894b0e9aa3ab04 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 7 Oct 2024 13:17:50 -0400 Subject: [PATCH] wip: fix --- platform/src/components/aws/function.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/src/components/aws/function.ts b/platform/src/components/aws/function.ts index e083fbdaa..400b140d8 100644 --- a/platform/src/components/aws/function.ts +++ b/platform/src/components/aws/function.ts @@ -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, @@ -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); }); @@ -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) {