From d56005feb6a3de379478905080fed9d957dcfeab Mon Sep 17 00:00:00 2001 From: inyoung Date: Fri, 18 Oct 2024 01:28:25 +0900 Subject: [PATCH 1/3] Feat: Add `sitemap` generated through XML-sitemap.com #45 --- src/app/sitemap.xml | 97 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 src/app/sitemap.xml diff --git a/src/app/sitemap.xml b/src/app/sitemap.xml new file mode 100644 index 0000000..e976fba --- /dev/null +++ b/src/app/sitemap.xml @@ -0,0 +1,97 @@ + + + + + + + https://www.likelionsg.site/ + 2024-10-17T16:26:47+00:00 + 1.00 + + + https://www.likelionsg.site/about + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/project + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/people + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/recruit + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/contact + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/credit + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd775 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd778 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77c + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd776 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77a + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77e + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd777 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77b + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd779 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77d + 2024-10-17T16:26:47+00:00 + 0.64 + + + + \ No newline at end of file From 33b12b9b082327dbf91ca0797e3a09d5f3c70361 Mon Sep 17 00:00:00 2001 From: inyoung Date: Fri, 18 Oct 2024 01:39:27 +0900 Subject: [PATCH 2/3] Chore: add `next/third-parties` package #45 --- package-lock.json | 20 ++++++++++++++++++++ package.json | 1 + 2 files changed, 21 insertions(+) diff --git a/package-lock.json b/package-lock.json index ab99ef5..1807983 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "likelion-nextjs", "version": "0.1.0", "dependencies": { + "@next/third-parties": "^14.2.15", "@tanstack/react-query": "^5.51.23", "dotenv": "^16.4.5", "i": "^0.3.7", @@ -2395,6 +2396,19 @@ "node": ">= 10" } }, + "node_modules/@next/third-parties": { + "version": "14.2.15", + "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.2.15.tgz", + "integrity": "sha512-15CvipE1p1GtlzVfbDfXPrAGIhzJJe75Yy6+GIBRTd36lu95BegRsUJwCxJYoKz47Q09stcU2gJDMduMGqrikw==", + "license": "MIT", + "dependencies": { + "third-party-capital": "1.0.20" + }, + "peerDependencies": { + "next": "^13.0.0 || ^14.0.0", + "react": "^18.2.0" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -11139,6 +11153,12 @@ "node": ">=0.8" } }, + "node_modules/third-party-capital": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/third-party-capital/-/third-party-capital-1.0.20.tgz", + "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==", + "license": "ISC" + }, "node_modules/throttle-debounce": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-3.0.1.tgz", diff --git a/package.json b/package.json index a805466..2f4c901 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ } }, "dependencies": { + "@next/third-parties": "^14.2.15", "@tanstack/react-query": "^5.51.23", "dotenv": "^16.4.5", "i": "^0.3.7", From 6502ece9b125d7e464b84838d6738150bbdf2c35 Mon Sep 17 00:00:00 2001 From: inyoung Date: Fri, 18 Oct 2024 02:14:59 +0900 Subject: [PATCH 3/3] Feat: Add GTM, GA #45 --- public/sitemap.xml | 97 ++++++++++++++++++ src/app/(main)/layout.tsx | 4 + src/app/sitemap.xml | 200 ++++++++++++++++++++------------------ src/type/declaration.d.ts | 12 +++ 4 files changed, 217 insertions(+), 96 deletions(-) create mode 100644 public/sitemap.xml create mode 100644 src/type/declaration.d.ts diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..3d4e856 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,97 @@ + + + + + + + https://www.likelionsg.site/ + 2024-10-17T16:26:47+00:00 + 1.00 + + + https://www.likelionsg.site/about + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/project + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/people + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/recruit + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/contact + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/credit + 2024-10-17T16:26:47+00:00 + 0.80 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd775 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd778 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77c + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd776 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77a + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77e + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd777 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77b + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd779 + 2024-10-17T16:26:47+00:00 + 0.64 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77d + 2024-10-17T16:26:47+00:00 + 0.64 + + + + \ No newline at end of file diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 4eec323..b058edb 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -3,6 +3,8 @@ import '@/style/globals.css' import { Figtree, Pp, Pretendard } from '@/utils/Font' import Header from '../component/Header' import Footer from '../component/Footer' +import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google' + // // // @@ -24,6 +26,8 @@ export default function RootLayout({ + +
diff --git a/src/app/sitemap.xml b/src/app/sitemap.xml index e976fba..52c134d 100644 --- a/src/app/sitemap.xml +++ b/src/app/sitemap.xml @@ -1,97 +1,105 @@ - - - - - - - https://www.likelionsg.site/ - 2024-10-17T16:26:47+00:00 - 1.00 - - - https://www.likelionsg.site/about - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/project - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/people - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/recruit - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/contact - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/credit - 2024-10-17T16:26:47+00:00 - 0.80 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd775 - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd778 - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd77c - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd776 - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd77a - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd77e - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd777 - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd77b - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd779 - 2024-10-17T16:26:47+00:00 - 0.64 - - - https://www.likelionsg.site/project/66e83209cdd80d19acedd77d - 2024-10-17T16:26:47+00:00 - 0.64 - - - + + + + https://www.likelionsg.site/ + 2024-10-17 + daily + 1.0 + + + https://www.likelionsg.site/about + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/people + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/contact + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/credit + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/project + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/recruit + 2024-10-17 + daily + 0.9 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77c + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77b + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77e + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77d + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd77a + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd775 + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd777 + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd779 + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd776 + 2024-10-17 + daily + 0.8 + + + https://www.likelionsg.site/project/66e83209cdd80d19acedd778 + 2024-10-17 + daily + 0.8 + \ No newline at end of file diff --git a/src/type/declaration.d.ts b/src/type/declaration.d.ts new file mode 100644 index 0000000..df6c841 --- /dev/null +++ b/src/type/declaration.d.ts @@ -0,0 +1,12 @@ +declare namespace NodeJS { + interface ProcessEnv { + NEXT_PUBLIC_API_BASE_URL: string + NEXT_PUBLIC_APP_URL: string + NEXT_PUBLIC_GTM_ID: string + NEXT_PUBLIC_GA_ID: string + } +} + +interface Window { + gtag: unknown +}