diff --git a/components/ui/Modal.vue b/components/ui/Modal.vue index 76af85eab..f27cdb036 100644 --- a/components/ui/Modal.vue +++ b/components/ui/Modal.vue @@ -3,7 +3,7 @@ diff --git a/middleware/analytics.js b/middleware/analytics.js index 4bb4fea87..fed71cc48 100644 --- a/middleware/analytics.js +++ b/middleware/analytics.js @@ -11,7 +11,7 @@ export default function (context) { return } - if (context.$config.analytics.base_url == null) { + if (process.env.NODE_ENV !== 'production') { return } diff --git a/nuxt.config.js b/nuxt.config.js index c81095f5d..c8bc06b62 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -375,6 +375,7 @@ export default { render: { routeDone(url, result, context) { setTimeout(() => { + if (process.env.NODE_ENV !== 'production') return axios .post( `${process.env.ARIADNE_URL || STAGING_ARIADNE_URL}view`, diff --git a/pages/_type/_id.vue b/pages/_type/_id.vue index f3290f4e2..aa367a973 100644 --- a/pages/_type/_id.vue +++ b/pages/_type/_id.vue @@ -8,7 +8,7 @@