16 lines
457 B
TypeScript
16 lines
457 B
TypeScript
|
|
import { MetadataRoute } from 'next';
|
||
|
|
|
||
|
|
export default function robots(): MetadataRoute.Robots {
|
||
|
|
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'https://your-domain.com';
|
||
|
|
|
||
|
|
return {
|
||
|
|
rules: {
|
||
|
|
userAgent: '*',
|
||
|
|
allow: '/',
|
||
|
|
// Uncomment and modify these if you have areas you want to disallow
|
||
|
|
// disallow: ['/admin/', '/private/'],
|
||
|
|
},
|
||
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
||
|
|
};
|
||
|
|
}
|