Files
GNX-WEB/frontEnd/app/robots.ts
Iliyan Angelov d7ff5c71e6 updates
2025-11-24 08:42:03 +02:00

76 lines
1.5 KiB
TypeScript

import { MetadataRoute } from 'next';
export default function robots(): MetadataRoute.Robots {
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://gnxsoft.com';
return {
rules: [
{
userAgent: '*',
allow: '/',
disallow: [
'/api/',
'/admin/',
'/_next/',
'/private/',
'/static/',
'/*.json$',
],
},
{
userAgent: 'Googlebot',
allow: [
'/',
'/services',
'/services/*',
'/about-us',
'/contact-us',
'/career',
'/career/*',
'/case-study',
'/case-study/*',
'/insights',
'/insights/*',
'/support-center',
'/policy',
],
disallow: [
'/api/',
'/admin/',
'/private/',
'/_next/',
'/static/',
],
},
{
userAgent: 'Bingbot',
allow: [
'/',
'/services',
'/services/*',
'/about-us',
'/contact-us',
'/career',
'/career/*',
'/case-study',
'/case-study/*',
'/insights',
'/insights/*',
'/support-center',
'/policy',
],
disallow: [
'/api/',
'/admin/',
'/private/',
'/_next/',
'/static/',
],
},
],
sitemap: `${baseUrl}/sitemap.xml`,
host: baseUrl,
};
}