fix(seo): serve sitemap and preserve static metadata files

This commit is contained in:
plebeius
2026-03-07 14:03:07 +08:00
parent 58abae7e38
commit 92eed04eb1
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
# https://www.robotstxt.org/robotstxt.html # https://www.robotstxt.org/robotstxt.html
User-agent: * User-agent: *
Disallow: Disallow:
Sitemap: https://5chan.app/sitemap.xml
# 5chan — open-source decentralized imageboard # 5chan — open-source decentralized imageboard
# Source: https://github.com/bitsocialhq/5chan # Source: https://github.com/bitsocialhq/5chan
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://5chan.app/</loc>
</url>
</urlset>
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"rewrites": [ "rewrites": [
{ "source": "/(.*)", "destination": "/index.html" } { "source": "^/(?!.*\\.).*$", "destination": "/index.html" }
], ],
"headers": [ "headers": [
{ {