diff --git a/mon-entreprise/source/pages/Dev/Sitemap.tsx b/mon-entreprise/source/pages/Dev/Sitemap.tsx index 8906c3e94..877aefc06 100644 --- a/mon-entreprise/source/pages/Dev/Sitemap.tsx +++ b/mon-entreprise/source/pages/Dev/Sitemap.tsx @@ -1,6 +1,6 @@ import { SitePathsContext } from 'Components/utils/SitePathsContext' import { useContext } from 'react' -import { generateSiteMap, SitePathsType } from '../../sitePaths' +import { generateSiteMap } from '../../sitePaths' export default function SiteMap() { const sitePaths = useContext(SitePathsContext) diff --git a/mon-entreprise/source/static/robots.en.txt b/mon-entreprise/source/static/robots.en.txt new file mode 100644 index 000000000..3c282cfba --- /dev/null +++ b/mon-entreprise/source/static/robots.en.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: /dev + +Sitemap: https://mycompanyinfrance.fr/sitemap.txt diff --git a/mon-entreprise/source/static/robots.fr.txt b/mon-entreprise/source/static/robots.fr.txt new file mode 100644 index 000000000..7e174962e --- /dev/null +++ b/mon-entreprise/source/static/robots.fr.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: /dev + +Sitemap: https://mon-entreprise.fr/sitemap.txt diff --git a/mon-entreprise/source/static/robots.infrance.txt b/mon-entreprise/source/static/robots.infrance.txt deleted file mode 100644 index 35933d14f..000000000 --- a/mon-entreprise/source/static/robots.infrance.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: /dev diff --git a/netlify.toml b/netlify.toml index d441e0cb4..d1d639fe1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -108,7 +108,7 @@ Content-Security-Policy-Report-Only = "default-src 'self' mon-entreprise.fr; sty # Mon-entreprise.fr [[redirects]] from = ":SITE_FR/robots.txt" - to = "/robots.infrance.txt" + to = "/robots.fr.txt" status = 200 [[redirects]] @@ -202,7 +202,7 @@ Content-Security-Policy-Report-Only = "default-src 'self' mon-entreprise.fr; sty [[redirects]] from = ":SITE_EN/robots.txt" - to = "/robots.infrance.txt" + to = "/robots.en.txt" status = 200 [[redirects]]