Skip to content

Commit 3c239e9

Browse files
authored
Fix sitemap issue (#32)
* add robot.txt and fix sitemap.ts * fix sitemap
1 parent 0bdcf73 commit 3c239e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/sitemap.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { MetadataRoute } from 'next';
2-
const BASE_URL = 'https://www.pythings.dev';
2+
const BASE_URL = 'https://pythings.dev';
33
import { getAllPosts } from '@/libs/post';
4-
export const dynamic = 'force-static'
54

65
export default function sitemap(): MetadataRoute.Sitemap {
76
// Doesn't work in dev mode
@@ -22,7 +21,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
2221
url: `${BASE_URL}/blog`,
2322
lastModified: new Date(),
2423
changeFrequency: 'weekly',
25-
priority: 0.5,
24+
priority: 0.7
2625
},
2726
{
2827
url: `${BASE_URL}/shop`,

0 commit comments

Comments
 (0)