Skip to content

Commit

Permalink
chore: fix web robots txt
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 2, 2024
1 parent e852aca commit 372f23d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion apps/frontend/web/app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,24 @@ import { APP_HOST } from '~build/env';

const { isSitemapUrl, sitemap } = createSitemapGenerator({
siteUrl: `https://${APP_HOST}`,
generateRobotsTxt: true
generateRobotsTxt: true,
robotsTxtOptions: {
policies: [
{
userAgent: '*',
allow: [
'/docs/',
'/anime/',
'/detail/',
'/resource/',
'/resources/1',
'/resources/2',
'/resources/3'
],
disallow: ['/feed.xml', '/api/']
}
]
}
});

export default async function handleRequest(
Expand Down

0 comments on commit 372f23d

Please sign in to comment.