Skip to content

Commit

Permalink
fix: NEXT_PUBLIC_PRODUCTION_URL으로 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Aug 6, 2024
1 parent dc7d77d commit 160eac5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/book/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const sitemap = ['search', ...booksId];

return sitemap.map(value => ({
url: `${process.env.NEXT_PRODUCTION_URL}/book/${value}`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/book/${value}`,
lastModified: new Date(),
}));
}
2 changes: 1 addition & 1 deletion src/app/bookshelf/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const bookshelves = await bookshelvesSitemap();

return bookshelves.map(({ bookshelfId }) => ({
url: `${process.env.NEXT_PRODUCTION_URL}/bookshelf/${bookshelfId}`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/bookshelf/${bookshelfId}`,
lastModified: new Date(),
}));
}
2 changes: 1 addition & 1 deletion src/app/group/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const bookGroups = await bookGroupSitemap();

return bookGroups.map(bookGroupId => ({
url: `${process.env.NEXT_PRODUCTION_URL}/group/${bookGroupId}`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/group/${bookGroupId}`,
lastModified: new Date(),
}));
}
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { LineSeedKR } from '@/styles/font';
import '@/styles/global.css';

export const metadata: Metadata = {
metadataBase: new URL(`${process.env.NEXT_PRODUCTION_URL}`),
metadataBase: new URL(`${process.env.NEXT_PUBLIC_PRODUCTION_URL}`),
title: {
template: '%s | 다독다독',
default: '다독다독',
Expand Down
4 changes: 2 additions & 2 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function robots(): MetadataRoute.Robots {
userAgent: '*',
allow: '/',
},
sitemap: `${process.env.NEXT_PRODUCTION_URL}/sitemap.xml`,
host: `${process.env.NEXT_PRODUCTION_URL}`,
sitemap: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/sitemap.xml`,
host: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}`,
};
}
6 changes: 3 additions & 3 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { default as bookGroupSitemap } from './group/sitemap';
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
return [
{
url: `${process.env.NEXT_PRODUCTION_URL}/bookarchive`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/bookarchive`,
lastModified: new Date(),
},
{
url: `${process.env.NEXT_PRODUCTION_URL}/group`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/group`,
lastModified: new Date(),
},
{
url: `${process.env.NEXT_PRODUCTION_URL}/profile/me`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/profile/me`,
lastModified: new Date(),
},
...(await bookSitemap()),
Expand Down
8 changes: 4 additions & 4 deletions src/constants/metadata/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ export const navigationSchemaItems = [
name: '북카이브',
description:
'같은 직군인 유저들의 책장과 인기 도서를 추천받고 인사이트를 넓혀보세요',
url: `${process.env.NEXT_PRODUCTION_URL}/bookarchive`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/bookarchive`,
},
{
'@type': 'SiteNavigationElement',
position: 2,
name: '도서검색',
description:
'평소에 궁금했거나 함께 이야기 나누고 싶은 도서를 검색해보세요',
url: `${process.env.NEXT_PRODUCTION_URL}/book/search`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/book/search`,
},
{
'@type': 'SiteNavigationElement',
position: 3,
name: '독서모임',
description:
'읽고 싶은 책을 선정하고 모임에 참여하여 멤버들과 이야기를 나눠보세요',
url: `${process.env.NEXT_PRODUCTION_URL}/group`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/group`,
},
{
'@type': 'SiteNavigationElement',
position: 4,
name: '내프로필',
description: '내 책장을 관리하고 참여한 독서 모임들을 확인해보세요',
url: `${process.env.NEXT_PRODUCTION_URL}/profile/me`,
url: `${process.env.NEXT_PUBLIC_PRODUCTION_URL}/profile/me`,
},
];

0 comments on commit 160eac5

Please sign in to comment.