Skip to content

Commit

Permalink
feat: add robots and sitemap files (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfrancisco authored Oct 25, 2024
1 parent 4220d1d commit 122cc02
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/engine/src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { config } from '@/config';
import { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
sitemap: `${config.pageUrl}/sitemap.xml`,
};
}
13 changes: 13 additions & 0 deletions apps/engine/src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { config } from '@/config';
import type { MetadataRoute } from 'next';

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: `${config.pageUrl}`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 1,
},
];
}

0 comments on commit 122cc02

Please sign in to comment.