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