Skip to content

Commit 5203a57

Browse files
authored
Merge pull request #86 from SeoJaeWan/develop
Deploy
2 parents 683f649 + 75cf5c1 commit 5203a57

File tree

8 files changed

+74
-5
lines changed

8 files changed

+74
-5
lines changed

next-sitemap.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: process.env.NEXT_PUBLIC_CLIENT,
4+
generateRobotsTxt: true, // (optional)
5+
6+
robotsTxtOptions: {
7+
policies: [
8+
{
9+
userAgent: "*",
10+
allow: "/",
11+
disallow: ["/admin/*", "/client/*"],
12+
},
13+
],
14+
},
15+
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "nodemon",
77
"build": "next build && tsc --project tsconfig.server.json",
8+
"postbuild": "next-sitemap",
89
"start": "NODE_ENV=production node dist/server/index.js"
910
},
1011
"dependencies": {
@@ -28,6 +29,7 @@
2829
"eslint-config-next": "15.0.4",
2930
"nodemon": "^3.1.7",
3031
"ts-node": "^10.9.2",
31-
"typescript": "^5"
32+
"typescript": "^5",
33+
"next-sitemap": "^4.2.3"
3234
}
3335
}

public/robots.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# *
2+
User-agent: *
3+
Allow: /
4+
Disallow: /admin/*
5+
Disallow: /client/*
6+
7+
# Host
8+
Host: https://rhythm-up.seojaewan.com
9+
10+
# Sitemaps
11+
Sitemap: https://rhythm-up.seojaewan.com/sitemap.xml

public/sitemap-0.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3+
<url><loc>https://rhythm-up.seojaewan.com/manifest.json</loc><lastmod>2024-12-25T06:29:26.675Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4+
<url><loc>https://rhythm-up.seojaewan.com</loc><lastmod>2024-12-25T06:29:26.675Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5+
</urlset>

public/sitemap.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<sitemap><loc>https://rhythm-up.seojaewan.com/sitemap-0.xml</loc></sitemap>
4+
</sitemapindex>

src/utils/createMeta.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ const createMeta = ({
1212
}): Metadata => ({
1313
title: `Rhythm Up${title}`,
1414
description,
15-
keywords: "노동요, 재생목록, 유튜브, 노래, 음악, 뮤직",
15+
keywords: "리듬업, 노동요, 재생목록, 유튜브, 노래, 음악, 뮤직",
16+
verification: {
17+
google: "xDw6n-eYm5QL9k9bksfKbS7_HgYWxkLNr2dj-cQ3Eeo",
18+
other: {
19+
"naver-site-verification": "0fc31dc1e75cc9e80987a315848e2045322fc792",
20+
},
21+
},
1622
openGraph: {
1723
title: `Rhythm Up${title}`,
1824
description,

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
},
2525
"strictNullChecks": true
2626
},
27-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27+
"include": [
28+
"next-env.d.ts",
29+
"**/*.ts",
30+
"**/*.tsx",
31+
".next/types/**/*.ts",
32+
"next-sitemap.config.js"
33+
],
2834
"exclude": ["node_modules"]
2935
}

yarn.lock

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
"@corex/deepmerge@^4.0.43":
6+
version "4.0.43"
7+
resolved "https://registry.yarnpkg.com/@corex/deepmerge/-/deepmerge-4.0.43.tgz#9bd42559ebb41cc5a7fb7cfeea5f231c20977dca"
8+
integrity sha512-N8uEMrMPL0cu/bdboEWpQYb/0i2K5Qn8eCsxzOmxSggJbbQte7ljMRoXm917AbntqTGOzdTu+vP3KOOzoC70HQ==
9+
510
"@cspotcode/source-map-support@^0.8.0":
611
version "0.8.1"
712
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
@@ -220,6 +225,11 @@
220225
resolved "https://registry.yarnpkg.com/@next/env/-/env-15.0.4.tgz#97da0fe3bae2f2b2968c4c925d7936660f5b3836"
221226
integrity sha512-WNRvtgnRVDD4oM8gbUcRc27IAhaL4eXQ/2ovGbgLnPGUvdyDr8UdXP4Q/IBDdAdojnD2eScryIDirv0YUCjUVw==
222227

228+
"@next/env@^13.4.3":
229+
version "13.5.8"
230+
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.5.8.tgz#404d3b3e5881b6a0510500c6cc97e3589a2e6371"
231+
integrity sha512-YmiG58BqyZ2FjrF2+5uZExL2BrLr8RTQzLXNDJ8pJr0O+rPlOeDPXp1p1/4OrR3avDidzZo3D8QO2cuDv1KCkw==
232+
223233
"@next/eslint-plugin-next@15.0.4":
224234
version "15.0.4"
225235
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-15.0.4.tgz#8bca5d39e39d172d64d9c36af55c1b49ef60b684"
@@ -1361,7 +1371,7 @@ fast-glob@3.3.1:
13611371
merge2 "^1.3.0"
13621372
micromatch "^4.0.4"
13631373

1364-
fast-glob@^3.3.2:
1374+
fast-glob@^3.2.12, fast-glob@^3.3.2:
13651375
version "3.3.2"
13661376
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
13671377
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==
@@ -2000,7 +2010,7 @@ minimatch@^9.0.4:
20002010
dependencies:
20012011
brace-expansion "^2.0.1"
20022012

2003-
minimist@^1.2.0, minimist@^1.2.6:
2013+
minimist@^1.2.0, minimist@^1.2.6, minimist@^1.2.8:
20042014
version "1.2.8"
20052015
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
20062016
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
@@ -2025,6 +2035,16 @@ negotiator@0.6.3:
20252035
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
20262036
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
20272037

2038+
next-sitemap@^4.2.3:
2039+
version "4.2.3"
2040+
resolved "https://registry.yarnpkg.com/next-sitemap/-/next-sitemap-4.2.3.tgz#5db3f650351a51e84b9fd6b58c5af2f9257b5058"
2041+
integrity sha512-vjdCxeDuWDzldhCnyFCQipw5bfpl4HmZA7uoo3GAaYGjGgfL4Cxb1CiztPuWGmS+auYs7/8OekRS8C2cjdAsjQ==
2042+
dependencies:
2043+
"@corex/deepmerge" "^4.0.43"
2044+
"@next/env" "^13.4.3"
2045+
fast-glob "^3.2.12"
2046+
minimist "^1.2.8"
2047+
20282048
next@15.0.4:
20292049
version "15.0.4"
20302050
resolved "https://registry.yarnpkg.com/next/-/next-15.0.4.tgz#7ddad7299204f16c132d7e524cf903f1a513588e"

0 commit comments

Comments
 (0)