Skip to content

Commit

Permalink
[FE] feat: SEO 개선을 위한 robots.txt, sitemap 추가 (#722)
Browse files Browse the repository at this point in the history
* feat: robots.txt, sitemap 작성

* refactor: index.html의 메타태그 수정

* feat: robots.txt와 sitemap 파일이 빌드할 때 포함되도록 추가
  • Loading branch information
xodms0309 authored Oct 4, 2023
1 parent 70c9c4b commit 2a3e96b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>펀잇</title>
<meta name="description" content="궁금해? 맛있을걸? 먹어봐 🥄" />
<meta name="description" content="펀잇은 모든 편의점 음식, 리뷰, 꿀조합을 한눈에 확인할 수 있는 서비스입니다." />
<meta property="og:title" content="펀잇" />
<meta property="og:description" content="궁금해? 맛있을걸? 먹어봐 🥄" />
<meta property="og:url" content="https://funeat.site" />
<meta property="og:site_name" content="펀잇" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/assets/og-image.png" />
<meta property="og:image:alt" content="펀잇" />
<meta property="og:type" content="website" />
Expand All @@ -25,7 +24,6 @@
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.css"
onload="this.onload=null; this.rel='stylesheet'"
/>
<title>펀잇</title>
</head>
<body>
<div id="root"></div>
Expand Down
9 changes: 9 additions & 0 deletions frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
User-agent: *
Disallow: /404
Allow: /

# Host
Host: https://funeat.site/

# Sitemaps
Sitemap: https://funeat.site/sitemap.xml
23 changes: 23 additions & 0 deletions frontend/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://funeat.site</loc>
<lastmod>2023-09-25T05:39:39+00:00</lastmod>
</url>
<url>
<loc>https://funeat.site/products/food</loc>
<lastmod>2023-09-25T05:39:39+00:00</lastmod>
</url>
<url>
<loc>https://funeat.site/products/store</loc>
<lastmod>2023-09-25T05:39:39+00:00</lastmod>
</url>
<url>
<loc>https://funeat.site/recipes</loc>
<lastmod>2023-09-25T05:39:39+00:00</lastmod>
</url>
</urlset>
2 changes: 2 additions & 0 deletions frontend/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module.exports = merge(common, {
patterns: [
{ from: 'public/assets', to: 'assets' },
{ from: 'public/manifest.json', to: 'manifest.json' },
{ from: 'public/robots.txt', to: 'robots.txt' },
{ from: 'public/sitemap.xml', to: 'sitemap.xml' },
],
}),
],
Expand Down

0 comments on commit 2a3e96b

Please sign in to comment.