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 }} 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',