mirror of
https://github.com/arthur-pbty/calculatrice.git
synced 2026-06-03 23:36:29 +02:00
8400e26c0a
- Refactored Dockerfile for improved multi-stage builds and added development and production configurations. - Updated README with clearer project description, local development instructions, and added contact information. - Enhanced Calculator component to manage theme and history using localStorage, improving user experience. - Added new pages for legal mentions and privacy policy, including relevant metadata. - Updated docker-compose.yml for better service management and added environment variables. - Introduced a new LICENSE file outlining usage rights and responsibilities.
32 lines
772 B
TypeScript
32 lines
772 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
/**
|
|
* Sitemap XML dynamique pour le référencement Google.
|
|
* Next.js génère automatiquement /sitemap.xml à partir de cette fonction.
|
|
*/
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const baseUrl =
|
|
process.env.NEXT_PUBLIC_SITE_URL || "https://calculatrice.arthurp.fr";
|
|
|
|
return [
|
|
{
|
|
url: baseUrl,
|
|
lastModified: new Date(),
|
|
changeFrequency: "monthly",
|
|
priority: 1.0,
|
|
},
|
|
{
|
|
url: `${baseUrl}/mentions-legales`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "yearly",
|
|
priority: 0.4,
|
|
},
|
|
{
|
|
url: `${baseUrl}/politique-de-confidentialite`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "yearly",
|
|
priority: 0.4,
|
|
},
|
|
];
|
|
}
|