Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:AyupDigital/admin into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3sage committed Mar 5, 2025
2 parents 5072e8d + 2673fe2 commit 2a2629e
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 22 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ VUE_APP_S3D_REGION=eu-west-2
VUE_APP_S3D_BUCKET=
VUE_APP_S3D_ACL=private
VUE_APP_S3D_CLOUDFRONT_ID=
VUE_APP_SENTRY_DSN=https://1c63eaa9b3d409ef64e300a6990ba1cb@o4508596540735488.ingest.de.sentry.io/4508596581630032
199 changes: 196 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "vue-cli-service build && npm run sentry:sourcemaps",
"lint": "vue-cli-service lint",
"lint:fix": "vue-cli-service lint --fix",
"deploy": "vue-cli-service s3-deploy",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e"
"test:e2e": "vue-cli-service test:e2e",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org ayup-digital --project admin ./dist && sentry-cli sourcemaps upload --org ayup-digital --project admin ./dist"
},
"dependencies": {
"@duetds/date-picker": "^1.4.0",
"@sentry/cli": "^2.40.0",
"@sentry/vue": "^8.48.0",
"axios": "^0.18.0",
"bugsnag-js": "^4.7.3",
"bugsnag-vue": "^1.0.1",
Expand Down Expand Up @@ -44,4 +47,4 @@
"vue-cli-plugin-s3-deploy": "^3.0.0",
"vue-template-compiler": "^2.5.17"
}
}
}
23 changes: 7 additions & 16 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,15 @@ import Vue from "vue";
import App from "@/App.vue";
import router from "@/router";

// Bugsnag.
import bugsnag from "bugsnag-js";
import bugsnagVue from "bugsnag-vue";
// Sentry
import * as Sentry from "@sentry/vue";

if (process.env.VUE_APP_BUGSNAG_API_KEY) {
const bugsnagClient = bugsnag({
apiKey: process.env.VUE_APP_BUGSNAG_API_KEY,
releaseStage: process.env.VUE_APP_ENV,
notifyReleaseStages: ["staging", "production"],
beforeSend(report) {
const user = Auth.user;
delete user.roles;

report.user = user;
}
if (process.env.VUE_APP_SENTRY_DSN) {
Sentry.init({
Vue,
dsn: process.env.VUE_APP_SENTRY_DSN,
integrations: [new Sentry.Integrations.Vue({ Vue })]
});

bugsnagClient.use(bugsnagVue(Vue));
}

// Vue headful.
Expand Down

0 comments on commit 2a2629e

Please sign in to comment.