-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import React from 'react'; | ||
import { useRouter } from 'next/navigation'; | ||
|
||
function Collect() { | ||
return <></>; | ||
const router = useRouter(); | ||
router.replace('/i/flow/login'); | ||
|
||
return null; | ||
} | ||
|
||
export default Collect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import Head from 'next/head'; | ||
import { DefaultSeo } from 'next-seo'; | ||
|
||
type SEOProps = { | ||
title?: string; | ||
description?: string; | ||
ogImage?: { | ||
url: string; | ||
width: number; | ||
height: number; | ||
}; | ||
}; | ||
|
||
const SEO: React.FC<SEOProps> = ({ title, description, ogImage }: SEOProps) => { | ||
const siteTitle = 'GLOG'; // 사이트 제목 | ||
const siteDescription = | ||
'개발자들을 위해 만들어진 블로그를 작성해보세요! 발자국 시스템, PR 시스템으로 블로그를 꾸준히 쓸 수 있도록 도와줍니다.'; // 사이트 설명 | ||
const siteUrl = 'http://15.164.221.35:3000'; // 사이트 URL | ||
const defaultOgImage = { | ||
url: `${siteUrl}/GLOG_LOGO.png`, | ||
width: 1200, | ||
height: 630, | ||
}; | ||
|
||
return ( | ||
<> | ||
<DefaultSeo | ||
title={title ? `${title} | ${siteTitle}` : siteTitle} | ||
description={description || siteDescription} | ||
canonical={siteUrl} | ||
openGraph={{ | ||
url: siteUrl, | ||
title: title || siteTitle, | ||
description: description || siteDescription, | ||
images: ogImage ? [ogImage] : [defaultOgImage], | ||
site_name: siteTitle, | ||
}} | ||
/> | ||
<Head>{/* 추가적인 head 설정 */}</Head> | ||
</> | ||
); | ||
}; | ||
|
||
export default SEO; |