Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,34 @@ const nextConfig = {
},
],
},
async headers() {
return [
{
source: "/dashboard/:path*",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
{
source: "/plugins/:slug/edit",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
{
source: "/shield.dl.total/:slug",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
{
source: "/shield.rating/:slug",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
{
source: "/shield.state/:slug",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
{
source: "/shield.version/:slug",
headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow" }],
},
];
},
async rewrites() {
const apiUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:4000";
return [
Expand Down
3 changes: 3 additions & 0 deletions src/app/builds/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Live Builds - EndGit",
description: "View recent plugin builds across the Endstone ecosystem.",
alternates: {
canonical: "/builds",
},
};

async function getTodayBuilds() {
Expand Down
3 changes: 0 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ export const metadata: Metadata = {
"endgit",
],
metadataBase: new URL("https://endgit.dev"),
alternates: {
canonical: "/",
},
openGraph: {
title: "endgit — endstone plugin marketplace",
description:
Expand Down
2 changes: 1 addition & 1 deletion src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function robots(): MetadataRoute.Robots {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/dashboard/", "/admin/", "/auth/", "/api/"],
disallow: ["/admin/", "/auth/", "/api/"],
},
sitemap: `${baseUrl}/sitemap.xml`,
};
Expand Down
6 changes: 6 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
changeFrequency: "daily",
priority: 0.9,
},
{
url: `${baseUrl}/builds`,
lastModified: new Date(),
changeFrequency: "daily",
priority: 0.6,
},
...pluginEntries,
];
}
Loading