From fdda8ad3c353a9ba6c0680fc0ab20c39bb261769 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Tue, 7 Mar 2023 20:53:27 +0000 Subject: [PATCH] Update article views in prod only --- components/layouts/ArticleLayout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/layouts/ArticleLayout.tsx b/components/layouts/ArticleLayout.tsx index 9d36d2e..fb47e7a 100644 --- a/components/layouts/ArticleLayout.tsx +++ b/components/layouts/ArticleLayout.tsx @@ -1,4 +1,5 @@ import React, {ReactNode} from 'react' +import * as process from 'process' import Head from 'next/head' import Link from 'next/link' import {Container} from '@/components/Container' @@ -17,6 +18,8 @@ type ArticleLayout = { slug: string } +const isProd = process.env.NODE_ENV === 'production' + export function ArticleLayout({ children, isRssFeed = false, @@ -106,7 +109,7 @@ export function ArticleLayout({ - +

{children}