We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51cefdd commit 3b19d58Copy full SHA for 3b19d58
.env.example
@@ -1 +1,2 @@
1
+NEXT_PUBLIC_BASE_URL=
2
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=
src/app/sitemap.ts
@@ -0,0 +1,19 @@
+import type { MetadataRoute } from 'next'
+
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
15
16
+ priority: 0.8,
17
18
+ ]
19
+}
0 commit comments