Skip to content

Commit

Permalink
fix: seo
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Feb 24, 2024
1 parent e4ba9f0 commit 72300bf
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-Agent: *
Allow: /
Disallow: /private/

Sitemap: https://www.paperai.life/sitemap.xml
30 changes: 30 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -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,
},
];
}
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).*)",
],
};

0 comments on commit 72300bf

Please sign in to comment.