Enhance blog metadata and SEO with structured Open Graph data; add sitemap and robots.txt functionality; replace default OG image.
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 36s
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 36s
This commit is contained in:
15
app/robots.tsx
Normal file
15
app/robots.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { MetadataRoute } from "next";
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
const baseUrl = "https://blog.gabrielkaszewski.dev";
|
||||
|
||||
return {
|
||||
rules: [
|
||||
{
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
},
|
||||
],
|
||||
sitemap: `${baseUrl}/sitemap.xml`,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user