From 94ef4773ed8e38893eb0fc767eebc1e99f8357db Mon Sep 17 00:00:00 2001 From: 1ilsang <1ilsang@naver.com> Date: Sat, 17 Aug 2024 00:53:26 +0900 Subject: [PATCH] feat(ad): remove google adsense --- public/ads.txt | 1 - src/app/layout.tsx | 2 -- .../shared/components/GoogleADSense.tsx | 22 ------------------- 3 files changed, 25 deletions(-) delete mode 100644 public/ads.txt delete mode 100644 src/features/shared/components/GoogleADSense.tsx diff --git a/public/ads.txt b/public/ads.txt deleted file mode 100644 index c97d1127..00000000 --- a/public/ads.txt +++ /dev/null @@ -1 +0,0 @@ -google.com, pub-1434955055285571, DIRECT, f08c47fec0942fa0 diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a9a9f740..c855c0c2 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,6 @@ import type { Metadata } from 'next'; import localFont from 'next/font/local'; import { BannerWrapper } from '~/shared/components/Banner'; -import GoogleADSense from '~/shared/components/GoogleADSense'; import { ImageUrl, MetaDescription, MetaTitle } from '~/shared/constants/blog'; import '~/styles/index.scss'; @@ -18,7 +17,6 @@ export default function RootLayout({ {children}
- ); } diff --git a/src/features/shared/components/GoogleADSense.tsx b/src/features/shared/components/GoogleADSense.tsx deleted file mode 100644 index 2c8bc059..00000000 --- a/src/features/shared/components/GoogleADSense.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import Script from 'next/script'; -import type { FunctionComponent } from 'react'; - -type Props = { - pId: string; -}; - -const GoogleADSense: FunctionComponent = ({ pId }) => { - if (process.env.NODE_ENV !== 'production') { - return null; - } - return ( -