finished reset password & other changes

This commit is contained in:
2024-04-24 22:37:55 +03:00
parent b1ad7b5c3e
commit 53cadc289a
58 changed files with 1520 additions and 349 deletions

25
app/robots.ts Normal file
View File

@@ -0,0 +1,25 @@
// eslint-disable-next-line validate-filename/naming-rules
import type { MetadataRoute } from 'next'
import { env } from '@/lib/utils'
export default function robots (): MetadataRoute.Robots {
const url = new URL(env('SITE_URL'))
const host = ['80', '443'].includes(url.port) ? url.hostname : url.host
return {
rules: [
{
userAgent: ['YandexBot', 'Applebot'],
disallow: ['/'],
},
{
userAgent: '*',
allow: ['/'],
disallow: ['/auth/', '/api/'],
crawlDelay: 3,
},
],
//sitemap: 'https://acme.com/sitemap.xml',
host,
}
}