File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ import { Container } from '@mui/material';
1414export const metadata = {
1515 title : 'Mobility Database' ,
1616 description : 'Mobility Database' ,
17+ robots : process . env . VERCEL_ENV === 'production'
18+ ? 'index, follow'
19+ : 'noindex, nofollow' ,
1720} ;
1821
1922const mulish = Mulish ( {
Original file line number Diff line number Diff line change 1+ import { type MetadataRoute } from 'next' ;
2+
3+ export default function robots ( ) : MetadataRoute . Robots {
4+ const isProd = process . env . VERCEL_ENV === 'production' ;
5+
6+ return {
7+ rules : [
8+ {
9+ userAgent : '*' ,
10+ allow : isProd ? '/' : '' ,
11+ disallow : isProd ? '' : '/' ,
12+ } ,
13+ ] ,
14+ sitemap : isProd ? 'https://mobilitydatabase.org/sitemap.xml' : undefined ,
15+ } ;
16+ }
You can’t perform that action at this time.
0 commit comments