diff --git a/examples/internal/playground/functions/handler-example/index.ts b/examples/internal/playground/functions/handler-example/index.ts index 5e4f21823..c85c858bc 100644 --- a/examples/internal/playground/functions/handler-example/index.ts +++ b/examples/internal/playground/functions/handler-example/index.ts @@ -3,6 +3,6 @@ import { Resource } from "sst"; export const handler = async (event) => { return { statusCode: 200, - body: JSON.stringify({ event, resources: Resource.MyBucket }, null, 4), + body: JSON.stringify({ event, resources: Resource.MyBucket }, null, 2), }; }; diff --git a/examples/internal/playground/sst.config.ts b/examples/internal/playground/sst.config.ts index f88fd323a..0a1f18559 100644 --- a/examples/internal/playground/sst.config.ts +++ b/examples/internal/playground/sst.config.ts @@ -8,6 +8,24 @@ export default $config({ home: "aws", }; }, + console: { + autodeploy: { + target(event) { + if ( + event.type === "branch" && + event.branch === "dev" && + event.action === "pushed" + ) { + return { stage: "dev" }; + } + }, + workflow(context) { + context.install(); + context.shell("cd examples/internal/playground && npm install"); + context.deploy(); + }, + }, + }, async run() { const bucket = new sst.aws.Bucket("MyBucket", { public: true,