File tree 7 files changed +25
-3
lines changed
scripts/aws-initial-setup
7 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 4
4
VUE_APP_GRAPHQL_ENDPOINT = http://localhost:3000/graphql # TODO: Application specific
5
5
VUE_APP_NAME = flox-test # TODO: Application specific
6
6
VUE_APP_AWS_REGION = eu-central-1 # TODO: Application specific
7
- VUE_APP_USER_POOL_ID = eu-central-1_dfN0W5Nfh # TODO: Application specific
8
- VUE_APP_USER_POOL_CLIENT_ID = 3v1adi0ebmc1kibgisphe6qc23 # TODO: Application specific
7
+ VUE_APP_USER_POOL_ID = eu-central-1_dfN0W5Nfh
8
+ VUE_APP_USER_POOL_CLIENT_ID = 3v1adi0ebmc1kibgisphe6qc23
Original file line number Diff line number Diff line change 44
44
"joi" : " ^17.4.2" ,
45
45
"lodash" : " ^4.17.21" ,
46
46
"lodash-es" : " ^4.17.21" ,
47
+ "logrocket" : " ^3.0.1" ,
47
48
"pinia" : " ^2.0.17" ,
48
49
"qrcode.vue" : " ^3.3.3" ,
49
50
"quasar" : " ^2.7.7" ,
Original file line number Diff line number Diff line change 7
7
import { precacheAndRoute } from 'workbox-precaching'
8
8
9
9
// Use with precache injection
10
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
10
11
precacheAndRoute ( self . __WB_MANIFEST )
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ import {RouterService} from 'src/services/RouterService';
11
11
import {routerInstance } from ' boot/router' ;
12
12
import {isModuleActive } from ' src/flox' ;
13
13
import {MODULES } from ' src/flox/MODULES' ;
14
+ import LogRocket from ' logrocket' ;
15
+
16
+ // Add LogRocket to production deployments / builds
17
+ if (process .env .VUE_APP_PRODUCTION === ' true' ){
18
+ LogRocket .init (' md69mq/flox' ); // TODO application specific: Change LogRocket ID
19
+ }
14
20
15
21
// Quasar
16
22
const $q = useQuasar ()
Original file line number Diff line number Diff line change @@ -11534,6 +11534,11 @@ loglevel@^1.6.8:
11534
11534
resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197"
11535
11535
integrity sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw==
11536
11536
11537
+ logrocket@^3.0.1:
11538
+ version "3.0.1"
11539
+ resolved "https://registry.yarnpkg.com/logrocket/-/logrocket-3.0.1.tgz#c746e8df3d5fee999b152975e51db1908357a6f0"
11540
+ integrity sha512-jOWG+jEzobKVxGytzZ+4KGm2kiMQMRTHab2uDWQyVZcHfEF38BlCH1yjQVY4LCmuQUwZitP9biMzJZnyUQ0dtQ==
11541
+
11537
11542
loose-envify@^1.4.0:
11538
11543
version "1.4.0"
11539
11544
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
Original file line number Diff line number Diff line change @@ -147,6 +147,16 @@ echo "VUE_APP_AWS_REGION=$aws_region" >> .env
147
147
echo " VUE_APP_USER_POOL_ID=$user_pool_id " >> .env
148
148
echo " VUE_APP_USER_POOL_CLIENT_ID=$user_pool_client_id " >> .env
149
149
150
+ # Add production flag for actual live deployments so LogRocket is enabled
151
+ # (applies only to 'test' & 'live' system; building in production mode does
152
+ # NOT imply a production system where we need the logger to be active)
153
+ if [[ $mode == " live" ]] || [[ $mode == " test" ]]
154
+ then
155
+ echo " VUE_APP_PRODUCTION=true" >> .env
156
+ else
157
+ echo " VUE_APP_PRODUCTION=false" >> .env
158
+ fi
159
+
150
160
# ==========================================
151
161
# == Step 1: Parent DNS setup ==
152
162
# == (Applies only in TEST and DEV mode) ==
Original file line number Diff line number Diff line change 1
1
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
2
# yarn lockfile v1
3
3
4
-
You can’t perform that action at this time.
0 commit comments