aboutsummaryrefslogtreecommitdiffstats
path: root/next-sitemap.js
diff options
context:
space:
mode:
Diffstat (limited to 'next-sitemap.js')
-rw-r--r--next-sitemap.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/next-sitemap.js b/next-sitemap.js
index c9cd443..348ea0b 100644
--- a/next-sitemap.js
+++ b/next-sitemap.js
@@ -1,7 +1,11 @@
/** @type {import('next-sitemap').IConfig} */
+const isStaging = process.env.APP_ENV === 'staging';
+
module.exports = {
- siteUrl: `${process.env.NEXT_PUBLIC_APP_PROTOCOL}://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,
+ siteUrl: isStaging
+ ? process.env.NEXT_PUBLIC_STAGING_APP_URL
+ : process.env.NEXT_PUBLIC_APP_URL,
generateRobotsTxt: true,
changefreq: null,
priority: null,