@dargmuesli/nuxt-vio 3.0.0-beta.18 → 3.0.0-beta.19
Sign up to get free protection for your applications and to get access to all the features.
package/nuxt.config.ts
CHANGED
@@ -60,17 +60,19 @@ export default defineNuxtConfig({
|
|
60
60
|
},
|
61
61
|
runtimeConfig: {
|
62
62
|
public: {
|
63
|
-
googleAnalyticsId: '', // set via environment variable `NUXT_PUBLIC_GOOGLE_ANALYTICS_ID` only
|
64
63
|
i18n: {
|
65
64
|
baseUrl: BASE_URL,
|
66
65
|
},
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
66
|
+
vio: {
|
67
|
+
googleAnalyticsId: '', // set via environment variable `NUXT_PUBLIC_GOOGLE_ANALYTICS_ID` only
|
68
|
+
isInProduction: process.env.NODE_ENV === 'production',
|
69
|
+
isTesting: false,
|
70
|
+
stagingHost:
|
71
|
+
process.env.NODE_ENV !== 'production' &&
|
72
|
+
!process.env.NUXT_PUBLIC_STACK_DOMAIN
|
73
|
+
? 'localhost:3000'
|
74
|
+
: undefined,
|
75
|
+
},
|
74
76
|
},
|
75
77
|
},
|
76
78
|
typescript: {
|
package/package.json
CHANGED
package/plugins/gtag.client.ts
CHANGED
@@ -10,7 +10,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
10
10
|
{
|
11
11
|
bootstrap: !!cookieControl.cookiesEnabledIds.value?.includes('ga'),
|
12
12
|
config: {
|
13
|
-
id: config.public.googleAnalyticsId,
|
13
|
+
id: config.public.vio.googleAnalyticsId,
|
14
14
|
params: {
|
15
15
|
cookie_flags: 'secure;samesite=strict',
|
16
16
|
},
|