diff --git a/components/mdx/post-views.tsx b/components/mdx/post-views.tsx index 6049968..184ded3 100644 --- a/components/mdx/post-views.tsx +++ b/components/mdx/post-views.tsx @@ -6,16 +6,17 @@ interface PostViewsProps { } export default async function PostViews({ slug }: PostViewsProps) { - const response = await fetch( - `${process.env.NEXT_PUBLIC_APP_URL}/api/views/${slug}` - ); - const data = await response.json(); + // const response = await fetch( + // `${process.env.NEXT_PUBLIC_APP_URL}/api/views/${slug}` + // ); + // const data = await response.json(); return (

- {data?.total && `${countFormatter(data.total)} views`} + 0 views + {/* {data?.total && `${countFormatter(data.total)} views`} */}

);