13 lines
317 B
TypeScript
13 lines
317 B
TypeScript
|
|
import type { MetadataRoute } from 'next';
|
||
|
|
import { siteUrl } from '@/lib/shared';
|
||
|
|
|
||
|
|
// Required for `output: 'export'`.
|
||
|
|
export const dynamic = 'force-static';
|
||
|
|
|
||
|
|
export default function robots(): MetadataRoute.Robots {
|
||
|
|
return {
|
||
|
|
rules: { userAgent: '*', allow: '/' },
|
||
|
|
sitemap: `${siteUrl}/sitemap.xml`,
|
||
|
|
};
|
||
|
|
}
|