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'],
|
||||
defaultLocale: 'fr'
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
gtag: {
|
||||
id: 'G-CDVVNFY6MV',
|
||||
enabled: false
|
||||
id: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
gtag: {
|
||||
id: '',
|
||||
enabled: process.env.NODE_ENV === 'production',
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user