mirror of
https://github.com/arthur-pbty/calculatrice.git
synced 2026-06-25 06:32:57 +02:00
first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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`,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user