Skip to content

Commit

Permalink
feat: create robots.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir committed Oct 26, 2024
1 parent d271dbd commit 305d11f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/robots.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { WEBSITE_URL } from '@/constants';

export default function robots() {
const SITEMAP = 'sitemap.xml';

return {
rules: {
userAgent: '*',
allow: '/',
},
sitemap: [
`${WEBSITE_URL}/${SITEMAP}`,
`${WEBSITE_URL}/posts/${SITEMAP}`,
`${WEBSITE_URL}/categories/${SITEMAP}`,
],
};
}

0 comments on commit 305d11f

Please sign in to comment.