Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-nuxt-tide): Add support for sitemap variants (#1255
Browse files Browse the repository at this point in the history
)

Co-authored-by: David Featherston <david.featherstone@dpc.vic.gov.au>
  • Loading branch information
lambry and David Featherston committed Nov 8, 2022
1 parent 61024ff commit 0ae87a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ripple-nuxt-tide/modules/site/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = function () {
return baseUrl + 'sitemap.xml?site=' + options.site + getQuery(req)
}
},
'/**/sitemap.xml': {
target: baseUrl,
pathRewrite: (path, req) => {
return baseUrl + path + '?site=' + options.site + getQuery(req)
}
},
'/sitemaps/**/sitemap.xml': {
target: baseUrl,
pathRewrite: (path, req) => {
Expand Down

0 comments on commit 0ae87a5

Please sign in to comment.