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>
31 lines
653 B
TypeScript
31 lines
653 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 sitemap(): MetadataRoute.Sitemap {
|
|
const base = siteUrl();
|
|
return [
|
|
{
|
|
url: base,
|
|
lastModified: new Date(),
|
|
changeFrequency: "weekly",
|
|
priority: 1.0,
|
|
},
|
|
{
|
|
url: `${base}/privacy`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "monthly",
|
|
priority: 0.3,
|
|
},
|
|
{
|
|
url: `${base}/terms`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "monthly",
|
|
priority: 0.3,
|
|
},
|
|
];
|
|
}
|