Close OSS self-host gaps: in-repo API docs, legal notes, and packaging.

Add MIT license and docs/api, strip SaaS status/admin remnants from robots and footer, align env/compose/README with payment-free product truth.
This commit is contained in:
Atakan Doğan Özban
2026-08-03 07:36:08 +02:00
parent 1fcae33ca3
commit 54bbf8b574
21 changed files with 594 additions and 38 deletions
+7 -2
View File
@@ -1,12 +1,17 @@
import type { MetadataRoute } from "next";
function siteUrl() {
const raw = process.env.NEXTAUTH_URL?.trim() || "http://localhost:3000";
return raw.replace(/\/$/, "");
}
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/admin", "/api/admin"],
disallow: ["/api/", "/dashboard", "/jobs"],
},
sitemap: "https://songs2vid.com/sitemap.xml",
sitemap: `${siteUrl()}/sitemap.xml`,
};
}