File tree Expand file tree Collapse file tree 11 files changed +63
-1
lines changed
Expand file tree Collapse file tree 11 files changed +63
-1
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ VUE_APP_SUBTITLE2="Variants from Chr11 Data Vignette"
1313VUE_APP_LINK_TERMS_IN_ABOUT = false
1414
1515VUE_APP_GOOGLE_OAUTH_CLIENT_ID = " 681537921273-i0odfloiqlq0iv5dodckg0pgt643hers.apps.googleusercontent.com"
16+
17+ # Do not define the Sentry DSN for anything but production
18+ # VUE_SENTRY_DSN=""
Original file line number Diff line number Diff line change @@ -5,8 +5,14 @@ import 'bootstrap/dist/css/bootstrap.min.css'
55import '@/assets/bravo.css'
66import { authAwareMount } from '@/AuthAwareMount'
77import { api_url } from '@/ApiUrlResolution'
8+ import * as Sentry from '@sentry/vue'
89
910const app = createApp ( App )
11+ if ( "VUE_SENTRY_DSN" in process . env ) {
12+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
13+ } else {
14+ console . log ( "Sentry.io not enabled for non-production build" )
15+ }
1016app . provide ( 'api' , api_url ( ) )
1117
1218// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ import '@/assets/snv_tabulator_table.css'
99import { clickOutside } from '@/CustomDirectives'
1010import { agreementExpectedMount } from '@/AuthAwareMount'
1111import { api_url } from '@/ApiUrlResolution'
12+ import * as Sentry from '@sentry/vue'
1213
1314const app = createApp ( App )
15+ if ( "VUE_SENTRY_DSN" in process . env ) {
16+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
17+ } else {
18+ console . log ( "Sentry.io not enabled for non-production build" )
19+ }
1420app . provide ( 'api' , api_url ( ) )
1521
1622// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ import 'bootstrap/dist/css/bootstrap.min.css'
55import '@/assets/bravo.css'
66import { authAwareMount } from '@/AuthAwareMount'
77import { api_url } from '@/ApiUrlResolution'
8+ import * as Sentry from '@sentry/vue'
89
910const app = createApp ( App )
11+ if ( "VUE_SENTRY_DSN" in process . env ) {
12+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
13+ } else {
14+ console . log ( "Sentry.io not enabled for non-production build" )
15+ }
1016app . provide ( 'api' , api_url ( ) )
11- console . log ( 'Debugging:' + api_url ( ) )
1217
1318// Inject gtag header if config includes a non-blank google analyitics id
1419if ( process . env . VUE_APP_GA_ID ) {
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ import '@/assets/snv_tabulator_table.css'
99import { clickOutside } from '@/CustomDirectives'
1010import { authAwareMount } from '@/AuthAwareMount'
1111import { api_url } from '@/ApiUrlResolution'
12+ import * as Sentry from '@sentry/vue'
1213
1314const app = createApp ( App )
15+ if ( "VUE_SENTRY_DSN" in process . env ) {
16+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
17+ } else {
18+ console . log ( "Sentry.io not enabled for non-production build" )
19+ }
1420app . provide ( 'api' , api_url ( ) )
1521
1622// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ import '@/assets/snv_tabulator_table.css'
99import { clickOutside } from '@/CustomDirectives'
1010import { authAwareMount } from '@/AuthAwareMount'
1111import { api_url } from '@/ApiUrlResolution'
12+ import * as Sentry from '@sentry/vue'
1213
1314const app = createApp ( App )
15+ if ( "VUE_SENTRY_DSN" in process . env ) {
16+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
17+ } else {
18+ console . log ( "Sentry.io not enabled for non-production build" )
19+ }
1420app . provide ( 'api' , api_url ( ) )
1521
1622// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -5,8 +5,14 @@ import 'bootstrap/dist/css/bootstrap.min.css'
55import '@/assets/bravo.css'
66import { authAwareMount } from '@/AuthAwareMount'
77import { api_url } from '@/ApiUrlResolution'
8+ import * as Sentry from '@sentry/vue'
89
910const app = createApp ( App )
11+ if ( "VUE_SENTRY_DSN" in process . env ) {
12+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
13+ } else {
14+ console . log ( "Sentry.io not enabled for non-production build" )
15+ }
1016app . provide ( 'api' , api_url ( ) )
1117
1218// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ import '@/assets/snv_tabulator_table.css'
99import { clickOutside } from '@/CustomDirectives'
1010import { agreementExpectedMount } from '@/AuthAwareMount'
1111import { api_url } from '@/ApiUrlResolution'
12+ import * as Sentry from '@sentry/vue'
1213
1314const app = createApp ( App )
15+ if ( "VUE_SENTRY_DSN" in process . env ) {
16+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
17+ } else {
18+ console . log ( "Sentry.io not enabled for non-production build" )
19+ }
1420app . provide ( 'api' , api_url ( ) )
1521
1622// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ import VueGtag from 'vue-gtag'
44import 'bootstrap/dist/css/bootstrap.min.css'
55import { authAwareMount } from '@/AuthAwareMount'
66import { api_url } from '@/ApiUrlResolution'
7+ import * as Sentry from '@sentry/vue'
78
89const app = createApp ( App )
10+ if ( "VUE_SENTRY_DSN" in process . env ) {
11+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
12+ } else {
13+ console . log ( "Sentry.io not enabled for non-production build" )
14+ }
915app . provide ( 'api' , api_url ( ) )
1016
1117// Inject gtag header if config includes a non-blank google analyitics id
Original file line number Diff line number Diff line change @@ -6,8 +6,14 @@ import '@/assets/bravo.css'
66import { clickOutside } from '@/CustomDirectives'
77import { agreementExpectedMount } from '@/AuthAwareMount'
88import { api_url } from '@/ApiUrlResolution'
9+ import * as Sentry from '@sentry/vue'
910
1011const app = createApp ( App )
12+ if ( "VUE_SENTRY_DSN" in process . env ) {
13+ Sentry . init ( { app, dsn : process . env . VUE_SENTRY_DSN , sendDefaultPii : false } )
14+ } else {
15+ console . log ( "Sentry.io not enabled for non-production build" )
16+ }
1117app . provide ( 'api' , api_url ( ) )
1218
1319// Inject gtag header if config includes a non-blank google analyitics id
You can’t perform that action at this time.
0 commit comments