Skip to content

Commit b9f39ad

Browse files
committed
chore: config next-sitemap
1 parent 72c4a9a commit b9f39ad

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
# production
1818
/build
19+
/public/robots.txt
20+
/public/sitemap*.xml
1921

2022
# misc
2123
.DS_Store

app/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import './globals.css';
22

3+
import { Metadata } from 'next';
34
import { Nanum_Myeongjo } from 'next/font/google';
45
import localFont from 'next/font/local';
56

@@ -16,6 +17,12 @@ const pretendard = localFont({
1617
variable: '--font-mono',
1718
});
1819

20+
export const metadata: Metadata = {
21+
other: {
22+
['google-site-verification']: '1tOVlPGznTkcAVpMjZVMHwrVgJrkxd9IPKcfLHd0LWc',
23+
},
24+
};
25+
1926
export default function RootLayout({
2027
children,
2128
}: Readonly<{

next-sitemap.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
3+
module.exports = {
4+
siteUrl: 'https://yuhwan-park.github.io/',
5+
changefreq: 'daily',
6+
priority: 1,
7+
sitemapSize: 5000,
8+
generateRobotsTxt: true,
9+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next build && next dev --turbo",
7-
"build": "next build",
7+
"build": "next-sitemap && next build",
88
"start": "next start",
99
"lint": "next lint"
1010
},

0 commit comments

Comments
 (0)