File tree Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
4141 const sitemap = [ 'search' , ...booksId ] ;
4242
4343 return sitemap . map ( value => ( {
44- url : `${ process . env . NEXT_HOST } /book/${ value } ` ,
44+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /book/${ value } ` ,
4545 lastModified : new Date ( ) ,
4646 } ) ) ;
4747}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
3434 const bookshelves = await bookshelvesSitemap ( ) ;
3535
3636 return bookshelves . map ( ( { bookshelfId } ) => ( {
37- url : `${ process . env . NEXT_HOST } /bookshelf/${ bookshelfId } ` ,
37+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /bookshelf/${ bookshelfId } ` ,
3838 lastModified : new Date ( ) ,
3939 } ) ) ;
4040}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
3232 const bookGroups = await bookGroupSitemap ( ) ;
3333
3434 return bookGroups . map ( bookGroupId => ( {
35- url : `${ process . env . NEXT_HOST } /group/${ bookGroupId } ` ,
35+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /group/${ bookGroupId } ` ,
3636 lastModified : new Date ( ) ,
3737 } ) ) ;
3838}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { LineSeedKR } from '@/styles/font';
1414import '@/styles/global.css' ;
1515
1616export const metadata : Metadata = {
17- metadataBase : new URL ( `${ process . env . NEXT_HOST } ` ) ,
17+ metadataBase : new URL ( `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } ` ) ,
1818 title : {
1919 template : '%s | 다독다독' ,
2020 default : '다독다독' ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default function robots(): MetadataRoute.Robots {
66 userAgent : '*' ,
77 allow : '/' ,
88 } ,
9- sitemap : `${ process . env . NEXT_HOST } /sitemap.xml` ,
10- host : `${ process . env . NEXT_HOST } ` ,
9+ sitemap : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /sitemap.xml` ,
10+ host : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } ` ,
1111 } ;
1212}
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import { default as bookGroupSitemap } from './group/sitemap';
77export default async function sitemap ( ) : Promise < MetadataRoute . Sitemap > {
88 return [
99 {
10- url : `${ process . env . NEXT_HOST } /bookarchive` ,
10+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /bookarchive` ,
1111 lastModified : new Date ( ) ,
1212 } ,
1313 {
14- url : `${ process . env . NEXT_HOST } /group` ,
14+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /group` ,
1515 lastModified : new Date ( ) ,
1616 } ,
1717 {
18- url : `${ process . env . NEXT_HOST } /profile/me` ,
18+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } /profile/me` ,
1919 lastModified : new Date ( ) ,
2020 } ,
2121 ...( await bookSitemap ( ) ) ,
Original file line number Diff line number Diff line change 1- const baseUrl = new URL ( `${ process . env . NEXT_HOST } ` ) ;
2-
31export const navigationSchemaItems = [
42 {
53 '@type' : 'SiteNavigationElement' ,
64 position : 1 ,
75 name : '북카이브' ,
86 description :
97 '같은 직군인 유저들의 책장과 인기 도서를 추천받고 인사이트를 넓혀보세요' ,
10- url : `${ baseUrl } bookarchive` ,
8+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } / bookarchive` ,
119 } ,
1210 {
1311 '@type' : 'SiteNavigationElement' ,
1412 position : 2 ,
1513 name : '도서검색' ,
1614 description :
1715 '평소에 궁금했거나 함께 이야기 나누고 싶은 도서를 검색해보세요' ,
18- url : `${ baseUrl } book/search` ,
16+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } / book/search` ,
1917 } ,
2018 {
2119 '@type' : 'SiteNavigationElement' ,
2220 position : 3 ,
2321 name : '독서모임' ,
2422 description :
2523 '읽고 싶은 책을 선정하고 모임에 참여하여 멤버들과 이야기를 나눠보세요' ,
26- url : `${ baseUrl } group` ,
24+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } / group` ,
2725 } ,
2826 {
2927 '@type' : 'SiteNavigationElement' ,
3028 position : 4 ,
3129 name : '내프로필' ,
3230 description : '내 책장을 관리하고 참여한 독서 모임들을 확인해보세요' ,
33- url : `${ baseUrl } profile/me` ,
31+ url : `${ process . env . NEXT_PUBLIC_PRODUCTION_URL } / profile/me` ,
3432 } ,
3533] ;
You can’t perform that action at this time.
0 commit comments