diff --git a/generator/templates/Deployment/_github/workflows/deploy.production.yml b/generator/templates/Deployment/_github/workflows/deploy.production.yml index bf8efe6..5e9a6a9 100644 --- a/generator/templates/Deployment/_github/workflows/deploy.production.yml +++ b/generator/templates/Deployment/_github/workflows/deploy.production.yml @@ -45,6 +45,8 @@ jobs: run: | touch .env.production echo "NODE_ENV=production" >> .env.production + echo "VUE_APP_ENV=vue_production" >> .env.production + echo "VUE_APP_RELEASE=${GITHUB_SHA}" >> .env.production echo "VUE_APP_ROOT_API=" >> .env.production echo "VUE_APP_SENTRY=" >> .env.production <%_ if (options.plugins.includes('analytics')) { _%> diff --git a/generator/templates/Deployment/_github/workflows/deploy.test.yml b/generator/templates/Deployment/_github/workflows/deploy.test.yml index 999ec79..176f287 100644 --- a/generator/templates/Deployment/_github/workflows/deploy.test.yml +++ b/generator/templates/Deployment/_github/workflows/deploy.test.yml @@ -45,6 +45,8 @@ jobs: run: | touch .env.production echo "NODE_ENV=production" >> .env.production + echo "VUE_APP_ENV=vue_test" >> .env.production + echo "VUE_APP_RELEASE=${GITHUB_SHA}" >> .env.production echo "VUE_APP_ROOT_API=" >> .env.production echo "VUE_APP_SENTRY=" >> .env.production echo "VUE_APP_ANALYTICS=" >> .env.production diff --git a/generator/templates/Plugins/sentry/src/plugins/sentry.js b/generator/templates/Plugins/sentry/src/plugins/sentry.js index e7a95b4..07f31a9 100644 --- a/generator/templates/Plugins/sentry/src/plugins/sentry.js +++ b/generator/templates/Plugins/sentry/src/plugins/sentry.js @@ -4,6 +4,8 @@ import Vue from 'vue'; if (process.env.VUE_APP_SENTRY) { Sentry.init({ + environment: process.env.VUE_APP_ENV, + release: process.env.VUE_APP_RELEASE, dsn: process.env.VUE_APP_SENTRY, integrations: [new Integrations.Vue({Vue, attachProps: true})], });