From 52c7aa838504ad4bf2742918db350f7c83b31556 Mon Sep 17 00:00:00 2001 From: Theodorus Clarence Date: Thu, 20 Jan 2022 21:31:08 +0700 Subject: [PATCH] fix: remove testing page --- src/pages/testing.tsx | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/pages/testing.tsx diff --git a/src/pages/testing.tsx b/src/pages/testing.tsx deleted file mode 100644 index 07ffbed..0000000 --- a/src/pages/testing.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { InferGetStaticPropsType } from 'next'; -import * as React from 'react'; - -import { getUrlBySlug, incrementLinkCount } from '@/lib/notion'; - -import Layout from '@/components/layout/Layout'; -import Seo from '@/components/Seo'; - -export default function TestingPage({ - link, -}: InferGetStaticPropsType) { - return ( - - - -
-
-
-
{JSON.stringify(link, null, 2)}
-
-
-
-
- ); -} - -export const getStaticProps = async () => { - const link = await getUrlBySlug('clarence'); - await incrementLinkCount(link); - - return { - props: { link }, - }; -};