Skip to content

Commit fa71b3e

Browse files
Ensure robots.txt and sitemap.xml are built
Make sure robots.txt and sitemap.xml are included in the build output and accessible via the browser.
1 parent f9947e3 commit fa71b3e

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

public/robots.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
User-agent: Googlebot
2-
Allow: /
3-
4-
User-agent: Bingbot
5-
Allow: /
6-
7-
User-agent: Twitterbot
8-
Allow: /
9-
10-
User-agent: facebookexternalhit
11-
Allow: /
121

132
User-agent: *
14-
Allow: /
3+
Disallow:
4+
5+
Sitemap: https://dra-lizcheng.com/sitemap.xml

sitemap.xml renamed to public/sitemap.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<?xml version="1.0" encoding="UTF-8"?>
23
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
34
<url>
@@ -30,4 +31,4 @@
3031
<changefreq>monthly</changefreq>
3132
<priority>0.5</priority>
3233
</url>
33-
</urlset>
34+
</urlset>

robots.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)