fix(01): CR-01 move gtag ID to runtime config env var
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
NUXT_PUBLIC_GTAG_ID=
|
||||||
+9
-2
@@ -18,8 +18,15 @@ export default defineNuxtConfig({
|
|||||||
locales: ['fr', 'en'],
|
locales: ['fr', 'en'],
|
||||||
defaultLocale: 'fr'
|
defaultLocale: 'fr'
|
||||||
},
|
},
|
||||||
|
runtimeConfig: {
|
||||||
|
public: {
|
||||||
gtag: {
|
gtag: {
|
||||||
id: 'G-CDVVNFY6MV',
|
id: '',
|
||||||
enabled: false
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
gtag: {
|
||||||
|
id: '',
|
||||||
|
enabled: process.env.NODE_ENV === 'production',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user