From f7ccb6c175539f181d34f5344afc78407bd7a592 Mon Sep 17 00:00:00 2001 From: Ben Siggery Date: Wed, 17 Jan 2024 14:25:33 +0000 Subject: [PATCH] ci: DSW-1598 fix amplifyid --- .github/workflows/ci-nuxtjs.yml | 2 +- webdriver-helpers/configuration-helper.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-nuxtjs.yml b/.github/workflows/ci-nuxtjs.yml index 3ed5187d..488c08f9 100644 --- a/.github/workflows/ci-nuxtjs.yml +++ b/.github/workflows/ci-nuxtjs.yml @@ -82,7 +82,7 @@ jobs: deploy: true node-version: 20 os: 'ubuntu-latest' - amplify-app-id: 'd1106vmj1ozg8d' + amplify-app-id: 'd36dan3bxjue8c' package-name: 'nuxt-app' package-dist-directory: './nuxt-app/dist' bucket-name-preview: 'pie-aperture-preview' diff --git a/webdriver-helpers/configuration-helper.js b/webdriver-helpers/configuration-helper.js index 06e774f8..2ddc807d 100644 --- a/webdriver-helpers/configuration-helper.js +++ b/webdriver-helpers/configuration-helper.js @@ -2,7 +2,11 @@ const { CI, GITHUB_REF_NAME, GITHUB_RUN_ID, PR_NUMBER, VANILLA_AMPLIFY_ID, NEXT_ const { execSync } = require('child_process'); exports.getAppConfig = (appName) => { - const config = {}; + const config = { + amplifyId: '', + port: '', + }; + switch (appName) { case 'vanilla-app': config.amplifyId = VANILLA_AMPLIFY_ID;