22 lines
451 B
TypeScript
22 lines
451 B
TypeScript
import { MetadataRoute } from 'next';
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const baseUrl = 'https://www.qrmaster.net';
|
|
|
|
return {
|
|
rules: {
|
|
userAgent: '*',
|
|
allow: ['/', '/_next/static/', '/_next/image/'],
|
|
disallow: [
|
|
'/api/',
|
|
'/dashboard/',
|
|
'/create/',
|
|
'/settings/',
|
|
'/newsletter/',
|
|
'/cdn-cgi/',
|
|
],
|
|
},
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|