mirror of
https://github.com/arthur-pbty/calculatrice.git
synced 2026-06-03 15:07:19 +02:00
21 lines
429 B
TypeScript
21 lines
429 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
/**
|
|
* Fichier robots.txt généré dynamiquement par Next.js.
|
|
* Accessible à /robots.txt
|
|
*/
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const baseUrl =
|
|
process.env.NEXT_PUBLIC_SITE_URL || "https://calculatrice.arthurp.fr";
|
|
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
],
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|