forked from resource-watch/resource-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-sitemap.js
40 lines (37 loc) · 1.03 KB
/
next-sitemap.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
const sitemap = require('nextjs-sitemap-generator');
// after generating the sitemap, remove manually the following URLs:
// https://resourcewatch.org/attribution-requirements
// https://resourcewatch.org/contact-us
// https://resourcewatch.org/explore
// https://resourcewatch.org/faqs
// https://resourcewatch.org/how-to
// https://resourcewatch.org/newsletter
// https://resourcewatch.org/partners
// https://resourcewatch.org/policy
// https://resourcewatch.org/pulse
sitemap({
baseUrl: 'https://resourcewatch.org',
ignoredPaths: [
'admin',
'dashboards-detail',
'embed',
'get-involved-detail',
'home',
'newsletter-thank-you',
'partner-detail',
'reset-password',
'webshot',
'widget-detail',
],
pagesDirectory: `${__dirname}/pages/app`,
targetDirectory: `${__dirname}/public`,
nextConfigPath: `${__dirname}/next.config.js`,
ignoreIndexFiles: true,
ignoredExtensions: [
'png',
'jpg',
'json',
],
});
// eslint-disable-next-line no-console
console.log('✅ sitemap.xml generated!');