Skip to content

Commit 2c0e969

Browse files
committed
Add SEO metadata, robots.txt, and sitemap.xml for improved site indexing
1 parent 2e8c36a commit 2c0e969

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

src/app/page.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ import { Metadata } from "next";
33

44
export const metadata: Metadata = {
55
title: "Vortex | An extensible, SOTA columnar file format",
6+
applicationName: "Vortex",
67
description:
7-
"Vortex is an extensible, state-of-the-art columnar file format, with associated tools for working with compressed Apache Arrow arrays in-memory, on-disk, and over-the-wire."
8+
"Vortex is an extensible, state-of-the-art columnar file format, with associated tools for working with compressed Apache Arrow arrays in-memory, on-disk, and over-the-wire.",
9+
openGraph: {
10+
title: "Vortex | An extensible, SOTA columnar file format",
11+
description:
12+
"Vortex is an extensible, state-of-the-art columnar file format, with associated tools for working with compressed Apache Arrow arrays in-memory, on-disk, and over-the-wire.",
13+
siteName: "Vortex",
14+
url: "https://vortex.dev",
15+
type: "website",
16+
locale: "en_US"
17+
},
18+
alternates: {
19+
canonical: "https://vortex.dev"
20+
},
21+
robots: {
22+
index: true,
23+
follow: true
24+
}
825
};
926

1027
export default function Home() {

src/app/robots.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { baseUrl } from "@/lib/constants";
2+
import type { MetadataRoute } from "next";
3+
4+
export default function robots(): MetadataRoute.Robots {
5+
return {
6+
rules: {
7+
userAgent: "*",
8+
allow: "/",
9+
disallow: "/api"
10+
},
11+
sitemap: `${baseUrl}/sitemap.xml`
12+
};
13+
}

src/app/sitemap.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://vortex.dev</loc>
5+
<lastmod>2025-04-07T00:00:00.000Z</lastmod>
6+
<changefreq>none</changefreq>
7+
<priority>1.0</priority>
8+
</url>
9+
</urlset>

src/lib/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const baseUrl =
2+
process.env.NEXT_PUBLIC_SITE_URL ??
3+
`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`;

0 commit comments

Comments
 (0)