Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : Vrai-Prix8 * File : src/app/robots.ts9 * Module : app10 * Repository : https://git.spboucher.ai/vrai-prix11 * Created : 2026-11-2612 * Last Modified : 2026-11-2613 *14 * Author : Simon-Pierre Boucher15 * Position : Professor of Finance16 * Institution : Université du Québec en Outaouais (UQO)17 * Organization : SP Boucher18 * Website : https://spboucher.ai19 * Git : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development : dev@spboucher.ai23 * Support : support@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142import type { MetadataRoute } from "next";43import { PREPROD, SITE_URL } from "@/lib/seo";4445// Lu à chaque requête : VP_PREPROD décide (préproduction = rien n'est indexé).46export const dynamic = "force-dynamic";4748export default function robots(): MetadataRoute.Robots {49 if (PREPROD) {50 return { rules: { userAgent: "*", disallow: "/" } };51 }52 return {53 rules: {54 userAgent: "*",55 allow: "/",56 disallow: ["/api/", "/favoris", "/parc"],57 },58 sitemap: `${SITE_URL}/sitemap-index.xml`,59 };60}61