From 43bddd9506d790ad6707fe71f28a4ecfa635c8f1 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 7 Jun 2022 18:06:20 +0200 Subject: build(sitemap): rename next-sitemap config file --- next-sitemap.config.js | 13 +++++++++++++ next-sitemap.js | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 next-sitemap.config.js delete mode 100644 next-sitemap.js 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'], +}; diff --git a/next-sitemap.js b/next-sitemap.js deleted file mode 100644 index 348ea0b..0000000 --- a/next-sitemap.js +++ /dev/null @@ -1,13 +0,0 @@ -/** @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'], -}; -- cgit v1.2.3