Skip to content

Commit 3b19d58

Browse files
committed
chore: added sitemap
1 parent 51cefdd commit 3b19d58

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
NEXT_PUBLIC_BASE_URL=
12
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=

src/app/sitemap.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { MetadataRoute } from 'next'
2+
3+
export default function sitemap(): MetadataRoute.Sitemap {
4+
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL
5+
return [
6+
{
7+
url: `${baseUrl}/`,
8+
lastModified: new Date(),
9+
changeFrequency: 'monthly',
10+
priority: 1,
11+
},
12+
{
13+
url: `${baseUrl}/quiz`,
14+
lastModified: new Date(),
15+
changeFrequency: 'monthly',
16+
priority: 0.8,
17+
},
18+
]
19+
}

0 commit comments

Comments
 (0)