From 30c6ff7285bb01a025408e664a8a70c7f06033c6 Mon Sep 17 00:00:00 2001 From: Nicola Leone Ciardi Date: Wed, 8 Apr 2026 18:54:02 +0200 Subject: [PATCH] added sitemap & robots.txt --- frontend/public/robots.txt | 6 ++++++ frontend/src/app/sitemap.ts | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 frontend/public/robots.txt create mode 100644 frontend/src/app/sitemap.ts 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, + }, + ] +}