From 73f5224d32c0c5b367df166b5fe5073ef4c4115b Mon Sep 17 00:00:00 2001 From: Camila Espinoza <56554983+cami-espinozaq@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:24:05 +0100 Subject: [PATCH 1/2] Update production.yml - add branch env var --- .github/workflows/production.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 08a8c3b5..eb731ba7 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -12,6 +12,7 @@ jobs: node-version: [12.x] python-version: [3.0] env: + BRANCH: production S3_BUCKET_PREFIX: hackingstudio-code4maus-projects AWS_REGION: eu-central-1 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} From 9372d4897879ca4b2543269ea0f3b25aba5d23bd Mon Sep 17 00:00:00 2001 From: Camila Espinoza <56554983+cami-espinozaq@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:28:27 +0100 Subject: [PATCH 2/2] Update webpack.config.js - set branch variable --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 2c15eb23..c2fd8199 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -147,6 +147,7 @@ module.exports = { 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.DEBUG': Boolean(process.env.DEBUG), 'process.env.ENABLE_TRACKING': Boolean(branch === 'production'), + 'process.env.BRANCH': JSON.stringify(branch), }), customHtmlPlugin({ entrypoint: 'app',