From 20d2c0479afeb17bcdb55891cdb78085547d1b6a Mon Sep 17 00:00:00 2001 From: Eddy Chen <89349085+ecxyzzy@users.noreply.github.com> Date: Fri, 9 Feb 2024 12:07:52 -0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20add=20.then()=20to=20as?= =?UTF-8?q?ync=20entrypoints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/websoc-proxy/build.mjs | 2 +- services/websoc-scraper-v2/index.ts | 2 +- tools/cdk/src/app/docs.ts | 8 +++----- tools/cdk/src/app/services.ts | 6 ++---- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/services/websoc-proxy/build.mjs b/services/websoc-proxy/build.mjs index 0412cdf9..2f97e36a 100644 --- a/services/websoc-proxy/build.mjs +++ b/services/websoc-proxy/build.mjs @@ -29,4 +29,4 @@ async function buildApp() { }); } -buildApp(); +buildApp().then(); diff --git a/services/websoc-scraper-v2/index.ts b/services/websoc-scraper-v2/index.ts index 496dc27d..11632ece 100644 --- a/services/websoc-scraper-v2/index.ts +++ b/services/websoc-scraper-v2/index.ts @@ -553,4 +553,4 @@ async function main() { } } -main().then(() => []); +main().then(); diff --git a/tools/cdk/src/app/docs.ts b/tools/cdk/src/app/docs.ts index 72fb601b..6de36ece 100644 --- a/tools/cdk/src/app/docs.ts +++ b/tools/cdk/src/app/docs.ts @@ -39,11 +39,9 @@ async function main() { new DocsStack(app, stackName, { stage, - env: { - region: "us-east-1", - }, - terminationProtection: /*stage === "prod"*/ false, + env: { region: "us-east-1" }, + terminationProtection: stage === "prod", }); } -main(); +main().then(); diff --git a/tools/cdk/src/app/services.ts b/tools/cdk/src/app/services.ts index 1201f043..a31cda11 100644 --- a/tools/cdk/src/app/services.ts +++ b/tools/cdk/src/app/services.ts @@ -13,11 +13,9 @@ async function main() { const app = new App({ autoSynth: true }); new ServicesStack(app, stackName, { - env: { - region: "us-east-1", - }, + env: { region: "us-east-1" }, terminationProtection: true, }); } -main(); +main().then();