-
-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathnext-sitemap.config.js
More file actions
75 lines (66 loc) · 1.63 KB
/
next-sitemap.config.js
File metadata and controls
75 lines (66 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/** @type {import('next-sitemap').IConfig} */
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://vetswhocode.io";
// Routes that must not appear in the XML sitemap or be crawled.
// Grouped by reason so future additions are easy to slot in.
const exclude = [
// Admin panel
"/admin",
"/admin/*",
// Auth & account
"/auth/*",
"/login",
"/profile",
"/profile/*",
"/orders",
"/orders/*",
// Gated troop experience
"/assessment",
"/assignments",
"/assignments/*",
"/certificates",
"/certificates/*",
"/challenges",
"/challenges/*",
"/courses",
"/courses/*",
"/jodie",
"/jodie/*",
"/resume-translator",
"/resume-translator/*",
"/submissions",
"/submissions/*",
"/zoom-meetings",
"/zoom-meetings/*",
// Internal / dev-only
"/dev-access",
"/editor-page",
"/url-preview-demo",
"/_offline",
// Theme scaffolding variants (canonical blog lives at /blogs/blog)
"/blogs/blog-classic",
"/blogs/blog-classic/*",
"/blogs/blog-grid-sidebar",
"/blogs/blog-grid-sidebar/*",
"/blogs/blog-list",
"/blogs/blog-list/*",
// Search endpoints (index blog posts directly, not search UIs)
"/blogs/search",
"/courses/search",
// Legacy duplicate (canonical contact lives at /contact-us)
"/contact-me",
];
module.exports = {
siteUrl,
generateRobotsTxt: true,
generateIndexSitemap: true,
exclude,
robotsTxtOptions: {
policies: [
{
userAgent: "*",
allow: "/",
disallow: exclude,
},
],
},
};