Add MIT license and docs/api, strip SaaS status/admin remnants from robots and footer, align env/compose/README with payment-free product truth. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
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: ["/api/", "/dashboard", "/jobs"],
|
|
},
|
|
sitemap: `${siteUrl()}/sitemap.xml`,
|
|
};
|
|
}
|