Skip to content

Commit 2ec98f3

Browse files
committed
feat: add canonical
1 parent d568ac9 commit 2ec98f3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/app/(web)/[resortId]/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export async function generateMetadata({
1616
description: resort
1717
? `${resort.name}의 실시간 정보를 확인해보세요.`
1818
: '위스키는 웹캠, 날씨, 슬로프 등 실시간 스키장 정보를 탐색할 수 있는 스키장 큐레이션 서비스입니다.',
19+
alternates: {
20+
canonical: `/${resortId}`,
21+
},
1922
openGraph: {
2023
images: [
2124
{

src/app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Toaster } from '@/shared/ui/toaster';
88
import Providers from './_providers';
99

1010
export const metadata: Metadata = {
11+
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://www.weski.live'),
1112
title: 'WeSki : 스키장 혼잡도 확인 서비스',
1213
description:
1314
'위스키는 웹캠, 날씨, 슬로프 등 실시간 스키장 정보를 탐색할 수 있는 스키장 큐레이션 서비스입니다.',

0 commit comments

Comments
 (0)