mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 03:05:42 +00:00
38 lines
796 B
TypeScript
38 lines
796 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://passenger.edrsc.com';
|
|
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: '*',
|
|
allow: [
|
|
'/',
|
|
'/about',
|
|
'/contact',
|
|
'/services',
|
|
'/packages',
|
|
'/packages/',
|
|
'/help',
|
|
'/guide',
|
|
],
|
|
disallow: [
|
|
'/booking/',
|
|
'/login',
|
|
'/register',
|
|
'/forgot-password',
|
|
'/reset-password',
|
|
'/set-password',
|
|
'/verify-account',
|
|
'/fayda-setup',
|
|
'/profile',
|
|
'/go/',
|
|
'/api/',
|
|
],
|
|
},
|
|
],
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|