CloudPro/app/robots.ts

16 lines
457 B
TypeScript
Raw Permalink Normal View History

2025-09-16 16:15:57 +08:00
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`,
};
}