forked from hashicorp/dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-sitemap.config.js
67 lines (65 loc) · 1.57 KB
/
next-sitemap.config.js
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
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
/** @type {import('next-sitemap').IConfig} */
const siteUrl = process.env.SITE_URL || 'https://developer.hashicorp.com'
module.exports = {
siteUrl,
generateRobotsTxt: true,
robotsTxtOptions: {
additionalSitemaps: [
`${siteUrl}/hcp-sitemap.xml`,
// sitemap generated from ./pages/server-sitemap.xml/index.tsx
`${siteUrl}/server-sitemap.xml`,
],
},
/*
* Exhaustive exclude list to remove duplicate sitemap paths.
* This list will not exist once all phases of the Sitemap Improvements project is complete
* Sitemap Improvements Asana https://app.asana.com/0/1203590180322427/overview
*/
exclude: [
'/swingset*',
'/onboarding/*',
'/profile*',
'sitemap.xml',
'/server-sitemap.xml',
'/boundary/docs*',
'/boundary/tutorials*',
'/consul/docs*',
'/consul/commands*',
'/consul/api-docs*',
'/consul/tutorials*',
'/nomad/docs*',
'/nomad/plugins*',
'/nomad/intro*',
'/nomad/tools*',
'/nomad/tutorials*',
'/packer/docs*',
'/packer/guides*',
'/packer/intro*',
'/packer/plugins*',
'/packer/tutorials*',
'/terraform/docs*',
'/terraform/cli*',
'/terraform/internals*',
'/terraform/intro*',
'/terraform/language*',
'/terraform/tutorials*',
'/vagrant/docs*',
'/vagrant/intro*',
'/vagrant/vagrant-cloud*',
'/vagrant/tutorials*',
'/waypoint/docs*',
'/waypoint/commands*',
'/waypoint/plugins*',
'/waypoint/tutorials*',
'/vault/docs*',
'/vault/api-docs*',
'/vault/tutorials*',
'/well-architected-framework/*',
'/hcp/tutorials*',
'/hcp/docs',
],
}