This commit is contained in:
liuweiqing 2024-02-24 21:27:24 +08:00
parent e4ba9f09db
commit 72300bf6eb
3 changed files with 36 additions and 1 deletions

5
app/robots.txt Normal file
View File

@ -0,0 +1,5 @@
User-Agent: *
Allow: /
Disallow: /private/
Sitemap: https://www.paperai.life/sitemap.xml

30
app/sitemap.ts Normal file
View File

@ -0,0 +1,30 @@
import { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://www.paperai.life",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 1,
},
{
url: "https://www.paperai.life/settings",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.5,
},
{
url: "https://docs.paperai.life",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.8,
},
{
url: "https://store.paperai.life",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.5,
},
];
}

View File

@ -69,6 +69,6 @@ export const config = {
* - favicon.ico (favicon file)
* Feel free to modify this pattern to include more paths.
*/
"/((?!_next/static|_next/image|favicon.ico|twitter-image.png|opengraph-image.png|manifest.json|site.webmanifest|favicon-32x32.png|favicon-16x16.png|apple-touch-icon.png|android-chrome-512x512.png|android-chrome-192x192.png|service-worker.js|serviceregister.js|global.css).*)",
"/((?!_next/static|_next/image|favicon.ico|twitter-image.png|opengraph-image.png|manifest.json|site.webmanifest|favicon-32x32.png|favicon-16x16.png|apple-touch-icon.png|android-chrome-512x512.png|android-chrome-192x192.png|service-worker.js|serviceregister.js|global.css|sitemap.xml|robots.txt).*)",
],
};