Files
2025-01-14 10:27:04 +01:00

15 lines
345 B
TypeScript

import type { MetadataRoute } from 'next'
import { getSentinelValue } from './sentinel'
import { setTimeout } from 'timers/promises'
export default async function robots(): Promise<MetadataRoute.Robots> {
'use cache'
// Simulate I/O
await setTimeout(100)
return {
rules: { userAgent: '*', allow: `/${getSentinelValue()}` },
}
}