Skip to content

Commit 574a6f6

Browse files
Merge pull request #18 from kingscode/sentry-from-deployments
sentry-from-deployments
2 parents 8e98599 + fe06cc7 commit 574a6f6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

generator/templates/Deployment/_github/workflows/deploy.production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
run: |
4646
touch .env.production
4747
echo "NODE_ENV=production" >> .env.production
48+
echo "VUE_APP_ENV=vue_production" >> .env.production
49+
echo "VUE_APP_RELEASE=${GITHUB_SHA}" >> .env.production
4850
echo "VUE_APP_ROOT_API=" >> .env.production
4951
<%_ if (options.plugins.includes('analytics')) { _%>
5052
echo "VUE_APP_ANALYTICS=" >> .env.production

generator/templates/Deployment/_github/workflows/deploy.test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
run: |
4646
touch .env.production
4747
echo "NODE_ENV=production" >> .env.production
48+
echo "VUE_APP_ENV=vue_test" >> .env.production
49+
echo "VUE_APP_RELEASE=${GITHUB_SHA}" >> .env.production
4850
echo "VUE_APP_ROOT_API=" >> .env.production
4951
<%_ if (options.plugins.includes('analytics')) { _%>
5052
echo "VUE_APP_ANALYTICS=" >> .env.production

generator/templates/Plugins/sentry/src/plugins/sentry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Vue from 'vue';
44

55
if (process.env.VUE_APP_SENTRY) {
66
Sentry.init({
7+
environment: process.env.VUE_APP_ENV,
8+
release: process.env.VUE_APP_RELEASE,
79
dsn: process.env.VUE_APP_SENTRY,
810
integrations: [new Integrations.Vue({Vue, attachProps: true})],
911
});

0 commit comments

Comments
 (0)