Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hive-io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hive-io
Merge requests
!15
Something went wrong on our end
added GA
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added GA
develop
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
therealwolf
requested to merge
develop
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
ef9accc3
Show latest version
3 files
+
23
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
ef9accc3
added GA
· ef9accc3
therealwolf
authored
4 years ago
nuxt.config.ts
+
10
−
1
Options
@@ -2,6 +2,9 @@ import i18n from './src/plugins/i18n.config'
require
(
'
dotenv
'
).
config
()
const
isDev
=
process
.
env
.
NODE_ENV
!==
'
production
'
const
env
=
{
GA_ID
:
process
.
env
.
GA_ID
||
'
UA-000000-1
'
}
export
default
{
modern
:
!
isDev
,
mode
:
'
universal
'
,
@@ -83,7 +86,13 @@ export default {
// Doc: https://github.com/nuxt-community/dotenv-module
'
@nuxtjs/dotenv
'
,
'
@nuxtjs/style-resources
'
,
[
'
nuxt-i18n
'
,
i18n
]
[
'
nuxt-i18n
'
,
i18n
],
[
'
@nuxtjs/google-analytics
'
,
{
id
:
env
.
GA_ID
}
]
],
/*
** Axios module configuration
Loading