diff --git a/components/ui/Modal.vue b/components/ui/Modal.vue index 76af85eab7..f27cdb0367 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 4bb4fea87e..fed71cc480 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 c81095f5d3..c8bc06b624 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 f3290f4e2c..aa367a973b 100644 --- a/pages/_type/_id.vue +++ b/pages/_type/_id.vue @@ -8,7 +8,7 @@