diff --git a/src/routes/robots.txt/+server.ts b/src/routes/robots.txt/+server.ts index 1a1bf6b..a3e3bfb 100644 --- a/src/routes/robots.txt/+server.ts +++ b/src/routes/robots.txt/+server.ts @@ -10,7 +10,7 @@ export async function GET() { const robotsConfig = [ { agent: '*', - disallow: ['/'] + disallow: import.meta.env.VERCEL_ENV === 'preview' ? ['/'] : ['/og.png/preview'] } ];