aboutsummaryrefslogtreecommitdiffstats
path: root/next-sitemap.config.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'next-sitemap.config.cjs')
-rw-r--r--next-sitemap.config.cjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/next-sitemap.config.cjs b/next-sitemap.config.cjs
new file mode 100644
index 0000000..44a2f43
--- /dev/null
+++ b/next-sitemap.config.cjs
@@ -0,0 +1,12 @@
+const isStaging = process.env.APP_ENV === 'staging';
+
+/** @type {import('next-sitemap').IConfig} */
+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'],
+};