diff --git a/LICENSE b/LICENSE index ba406ed..d9a4ffd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020~2022 combbm +Copyright (c) 2020~2024 Daegyeom Ha Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03..a4a7b3f 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. diff --git a/package.json b/package.json index 2b07990..6a2b63f 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ "@emotion/css": "^11.11.2", "@emotion/react": "^11.1.1", "@emotion/styled": "^11.0.0", - "@next/third-parties": "^14.2.3", "@remixicon/react": "^4.2.0", "@supabase/auth-helpers-nextjs": "^0.9.0", "@supabase/auth-helpers-react": "^0.4.2", "@supabase/supabase-js": "^2.39.7", "framer-motion": "^6.3.12", - "next": "^14.1.0", + "next": "^14.2.10", + "next-seo": "^6.6.0", "react": "^18.2.0", "react-beautiful-dnd": "^13.1.0", "react-dom": "^18.2.0", diff --git a/src/constants/seo.ts b/src/constants/seo.ts new file mode 100644 index 0000000..9cd05f4 --- /dev/null +++ b/src/constants/seo.ts @@ -0,0 +1,22 @@ +import { DefaultSeoProps } from 'next-seo'; + +export const DEFAULT_SEO: DefaultSeoProps = { + title: '하대겸 | Daegyeom Ha', + description: '우리 생활을 더 편리하게 만듭니다. 개발자 하대겸입니다.', + canonical: 'https://daegyeo.me', + themeColor: '#35425A', + openGraph: { + url: 'https://daegyeo.me', + title: '하대겸 | Daegyeom Ha', + description: '우리 생활을 더 편리하게 만듭니다. 개발자 하대겸입니다.', + siteName: '하대겸 | Daegyeom Ha', + images: [ + { + url: 'https://daegyeo.me/og-image.png', + width: 1200, + height: 630, + alt: '하대겸 프로필 대표 이미지' + } + ] + } +}; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index b8032c5..719c159 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -4,8 +4,10 @@ import { ChakraProvider } from '@chakra-ui/react'; import Head from 'next/head'; import { createPagesBrowserClient, Session } from '@supabase/auth-helpers-nextjs'; import { SessionContextProvider } from '@supabase/auth-helpers-react'; +import { DefaultSeo } from 'next-seo'; import GlobalStyle from '../styles/GlobalStyle'; import Colors from '../styles/Colors'; +import { DEFAULT_SEO } from '../constants/seo'; const App = ({ Component, @@ -22,6 +24,7 @@ const App = ({ return ( <> + 하대겸 | Daegyeom Ha diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 2f6f302..e6089da 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { Head, Html, Main, NextScript } from 'next/document'; -import { GoogleAnalytics } from '@next/third-parties/google'; -import Colors from '../styles/Colors'; +import Script from 'next/script'; const Document = () => { return ( @@ -12,24 +11,22 @@ const Document = () => { crossOrigin="anonymous" async /> - - +