summaryrefslogtreecommitdiffstats
path: root/next-sitemap.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'next-sitemap.config.js')
-rw-r--r--next-sitemap.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/next-sitemap.config.js b/next-sitemap.config.js
new file mode 100644
index 0000000..348ea0b
--- /dev/null
+++ b/next-sitemap.config.js
@@ -0,0 +1,13 @@
+/** @type {import('next-sitemap').IConfig} */
+
+const isStaging = process.env.APP_ENV === 'staging';
+
+module.exports = {
+ siteUrl: isStaging
+ ? process.env.NEXT_PUBLIC_STAGING_APP_URL
+ : process.env.NEXT_PUBLIC_APP_URL,
+ generateRobotsTxt: true,
+ changefreq: null,
+ priority: null,
+ exclude: ['/feed.xml', '/feed.json', '/atom.xml'],
+};