-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 환경변수에 NEXT_DEPLOYMENT_URL 추가 및 적용
- Loading branch information
Showing
8 changed files
with
13 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import type { MetadataRoute } from 'next'; | ||
|
||
import { DEPLOYMENT_URL } from '@/constants/url'; | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: '*', | ||
allow: '/', | ||
}, | ||
sitemap: `${DEPLOYMENT_URL}/sitemap.xml`, | ||
host: `${DEPLOYMENT_URL}`, | ||
sitemap: `${process.env.NEXT_DEPLOYMENT_URL}/sitemap.xml`, | ||
host: `${process.env.NEXT_DEPLOYMENT_URL}`, | ||
}; | ||
} |
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,35 +1,33 @@ | ||
import { DEPLOYMENT_URL } from '@/constants/url'; | ||
|
||
export const navigationSchemaItems = [ | ||
{ | ||
'@type': 'SiteNavigationElement', | ||
position: 1, | ||
name: '북카이브', | ||
description: | ||
'같은 직군인 유저들의 책장과 인기 도서를 추천받고 인사이트를 넓혀보세요', | ||
url: `${DEPLOYMENT_URL}/bookarchive`, | ||
url: `${process.env.NEXT_DEPLOYMENT_URL}/bookarchive`, | ||
}, | ||
{ | ||
'@type': 'SiteNavigationElement', | ||
position: 2, | ||
name: '도서검색', | ||
description: | ||
'평소에 궁금했거나 함께 이야기 나누고 싶은 도서를 검색해보세요', | ||
url: `${DEPLOYMENT_URL}/book/search`, | ||
url: `${process.env.NEXT_DEPLOYMENT_URL}/book/search`, | ||
}, | ||
{ | ||
'@type': 'SiteNavigationElement', | ||
position: 3, | ||
name: '독서모임', | ||
description: | ||
'읽고 싶은 책을 선정하고 모임에 참여하여 멤버들과 이야기를 나눠보세요', | ||
url: `${DEPLOYMENT_URL}/group`, | ||
url: `${process.env.NEXT_DEPLOYMENT_URL}/group`, | ||
}, | ||
{ | ||
'@type': 'SiteNavigationElement', | ||
position: 4, | ||
name: '내프로필', | ||
description: '내 책장을 관리하고 참여한 독서 모임들을 확인해보세요', | ||
url: `${DEPLOYMENT_URL}/profile/me`, | ||
url: `${process.env.NEXT_DEPLOYMENT_URL}/profile/me`, | ||
}, | ||
]; |
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