diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 0000000..3a733be --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,6 @@ +# Robots.txt for cimaprogetti.it +User-agent: * +Allow: / + +# Sitemap +Sitemap: https://cimaprogetti.it/sitemap.xml diff --git a/frontend/src/app/sitemap.ts b/frontend/src/app/sitemap.ts new file mode 100644 index 0000000..1a62906 --- /dev/null +++ b/frontend/src/app/sitemap.ts @@ -0,0 +1,20 @@ +import { MetadataRoute } from 'next' + +export default function sitemap(): MetadataRoute.Sitemap { + const baseUrl = 'https://cimaprogetti.it' + + return [ + { + url: `${baseUrl}`, + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 1, + }, + { + url: `${baseUrl}/contatti`, + lastModified: new Date(), + changeFrequency: 'monthly', + priority: 0.8, + }, + ] +}