Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Mar 12, 2024
1 parent 6e0a1f3 commit ebeee1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 6 additions & 9 deletions examples/playground/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export default $config({
removalPolicy: input?.stage === "production" ? "retain" : "remove",
providers: {
aws: {},
cloudflare: {
accountId: "24beb0945bae6b37c2b147db108c6ec8",
},
},
};
},
Expand All @@ -23,15 +20,15 @@ export default $config({
},
});

// const app = new sst.aws.Function("MyApp", {
// handler: "functions/handler-example/index.handler",
// link: [bucket],
// url: true,
// });
const app = new sst.aws.Function("MyApp2", {
handler: "functions/handler-example/index.handler",
link: [bucket],
url: true,
});

return {
bucket: bucket.name,
// app: app.url,
app: app.url,
};
},
});
3 changes: 3 additions & 0 deletions pkg/platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,9 @@ export class Function
code: new asset.AssetArchive({
index: new asset.StringAsset("exports.handler = () => {}"),
}),
//code: new asset.FileArchive(
// path.join($cli.paths.platform, "functions", "empty-function"),
//),
handler,
role: role.arn,
runtime,
Expand Down

0 comments on commit ebeee1c

Please sign in to comment.