📄 production optimizations

This commit is contained in:
RJ
2025-12-02 12:39:11 +02:00
committed by Rares J
parent 7dca1de1aa
commit 6f7f0c6960
20 changed files with 1142 additions and 155 deletions

18
app/robots.ts Normal file
View File

@@ -0,0 +1,18 @@
import { MetadataRoute } from 'next'
export default function robots(): MetadataRoute.Robots {
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3030'
return {
rules: {
userAgent: '*',
allow: '/',
disallow: [
'/api/', // Disallow API routes (if any)
'/_next/', // Disallow Next.js internals
'/admin/', // Disallow admin (if any)
],
},
sitemap: `${baseUrl}/sitemap.xml`,
}
}