Skip to content

Commit 2d4aeb6

Browse files
committed
refactor: improve metadata configuration with URL constants
- Extract webUrl constant for better maintainability - Add PropsWithChildren type import for proper typing - Update social image URLs to use absolute paths - Change locale from ko_KR to en_US for international audience
1 parent 140bcff commit 2d4aeb6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/app/[lang]/layout.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { Metadata } from 'next';
55
import type { PropsWithChildren } from 'react';
66
import { i18n } from '@/lib/i18n';
77

8+
const webUrl = 'https://rnnavermap.mjstudio.net';
89
const { provider } = defineI18nUI(i18n, {
910
translations: {
1011
ko: {
@@ -49,13 +50,13 @@ export const metadata: Metadata = {
4950
title: 'React Native Naver Map',
5051
description:
5152
'Native-performance map component with seamless Naver SDK integration, complete TypeScript support, and easy-to-use API designed for React Native developers.',
52-
url: 'https://rnnavermap.mjstudio.net',
53+
url: webUrl,
5354
siteName: 'React Native Naver Map',
54-
locale: 'ko_KR',
55+
locale: 'en_US',
5556
type: 'website',
5657
images: [
5758
{
58-
url: '/social-image.png',
59+
url: `${webUrl}/social-image.png`,
5960
width: 1200,
6061
height: 675,
6162
alt: 'React Native Naver Map',
@@ -67,7 +68,7 @@ export const metadata: Metadata = {
6768
title: 'React Native Naver Map',
6869
description:
6970
'Native-performance map component with seamless Naver SDK integration, complete TypeScript support, and easy-to-use API designed for React Native developers.',
70-
images: ['/social-image.png'],
71+
images: [`${webUrl}/social-image.png`],
7172
},
7273
robots: {
7374
index: true,

0 commit comments

Comments
 (0)