diff --git a/examples/playground/sst.config.ts b/examples/playground/sst.config.ts index d23f222de..7546529a2 100644 --- a/examples/playground/sst.config.ts +++ b/examples/playground/sst.config.ts @@ -7,9 +7,6 @@ export default $config({ removalPolicy: input?.stage === "production" ? "retain" : "remove", providers: { aws: {}, - cloudflare: { - accountId: "24beb0945bae6b37c2b147db108c6ec8", - }, }, }; }, @@ -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, }; }, }); diff --git a/pkg/platform/src/components/aws/function.ts b/pkg/platform/src/components/aws/function.ts index 38ad90e99..b829b2fe0 100644 --- a/pkg/platform/src/components/aws/function.ts +++ b/pkg/platform/src/components/aws/function.ts @@ -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,