mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: allow
This commit is contained in:
1 parent
75cf827082
commit
4253cd3e1b
1 file changed
+1
-1
@@ -5,7 +5,7 @@ export async function GET({ request }: APIContext) {
|
||||
const allowRobots = assertSecret(import.meta.env.ALLOW_ROBOTS) === 'true';
|
||||
const flags: Record<string, string | null> = {
|
||||
'User-agent': '*',
|
||||
[allowRobots ? 'Allow' : 'Disallow']: '/',
|
||||
Allow: '/',
|
||||
|
||||
space: null,
|
||||
Sitemap: `${new URL(request.url).origin}/sitemap-index.xml`,
|
||||
|
||||
Reference in new issue
Block a user