Skip to content

Commit b8cdf3d

Browse files
committed
chore: hopefully allow algolia web crawler
1 parent 73f3e9a commit b8cdf3d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

apps/docs/src/app/robots.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ import { BASE_URL } from "@/constants/env.js";
44

55
export default function robots(): MetadataRoute.Robots {
66
return {
7-
rules: {
8-
userAgent: "*",
9-
// I don't want them to crawl this preview website
10-
disallow: "/",
11-
// allow: "/",
12-
},
7+
rules: [
8+
{
9+
userAgent: "*",
10+
// I don't want them to crawl this preview website
11+
disallow: "/",
12+
// allow: "/",
13+
},
14+
{
15+
userAgent: "Algolia Crawler/*",
16+
allow: "/",
17+
},
18+
],
1319
sitemap: `${BASE_URL}/sitemap.xml`,
1420
};
1521
}

0 commit comments

Comments
 (0)