Commit e41ae5d9 authored by isstuev's avatar isstuev

disable counter for dev environment

parent fcf23f00
......@@ -46,7 +46,7 @@ Promise<GetServerSidePropsResult<Props<Pathname>>> => {
const isTrackingDisabled = process.env.DISABLE_TRACKING === 'true';
if (!isTrackingDisabled) {
if (!isTrackingDisabled && !config.app.isDev) {
// log pageview
const hostname = req.headers.host;
const timestamp = new Date().toISOString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment