RLS policies implementeren, Demo auth flow
This commit is contained in:
36
app/robots.ts
Normal file
36
app/robots.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Robots.txt Generator
|
||||
*
|
||||
* Generates robots.txt for SEO.
|
||||
* Next.js will automatically serve this at /robots.txt
|
||||
*/
|
||||
|
||||
import type { MetadataRoute } from 'next'
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || 'https://aispeedrun.vercel.app'
|
||||
|
||||
return {
|
||||
rules: [
|
||||
{
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: [
|
||||
'/api/',
|
||||
'/_next/',
|
||||
'/admin/',
|
||||
],
|
||||
},
|
||||
{
|
||||
userAgent: 'Googlebot',
|
||||
allow: '/',
|
||||
disallow: [
|
||||
'/api/',
|
||||
'/_next/',
|
||||
],
|
||||
},
|
||||
],
|
||||
sitemap: `${baseUrl}/sitemap.xml`,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user