-
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.
Merge pull request #51 from dnd-side-project/seo
seo : 사이트맵, 메타데이터 동적으로 생성
- Loading branch information
Showing
8 changed files
with
59 additions
and
45 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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getPoseFeed } from '@/apis'; | ||
import { URL } from '@/constants/url'; | ||
|
||
export default async function sitemap() { | ||
const baseUrl = URL.site; | ||
|
||
const { | ||
filteredContents: { content }, | ||
} = await getPoseFeed(0, 0, '', 0); | ||
const detailUrls = content.map(({ poseInfo }) => ({ | ||
url: `${baseUrl}/detail/${poseInfo.poseId}`, | ||
lastModified: poseInfo.updatedAt, | ||
})); | ||
|
||
return [ | ||
{ url: baseUrl, lastModified: new Date() }, | ||
{ url: `${baseUrl}/pick`, lastModified: new Date() }, | ||
{ url: `${baseUrl}/talk`, lastModified: new Date() }, | ||
{ url: `${baseUrl}/feed`, lastModified: new Date() }, | ||
...detailUrls, | ||
]; | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export const URL = { | ||
site: 'https://www.posepicker.site', | ||
inquiry: | ||
'https://docs.google.com/forms/d/e/1FAIpQLSeZuPZTXnO4rZ4k39SzXv96PWAW4gLcTYBrsRUrgRHSVV9Ldg/viewform?usp=sf_link', | ||
}; |