hotfix: update edge.js to fix sitemap.xml routing
parent
1b5de3f3b3
commit
99b53d3dfa
|
@ -180,7 +180,7 @@ exports.handler = (event, context, callback) => {
|
|||
// or if the version number is parsed as an extension.
|
||||
let newUri;
|
||||
|
||||
if (parsedPath.ext === '' || /\.[x0-9]{1,}/.test(parsedPath.ext)) {
|
||||
if (parsedPath.ext === '' || /\.(?:x$|[0-9]{1,})/.test(parsedPath.ext)) {
|
||||
newUri = path.join(parsedPath.dir, parsedPath.base, indexPath);
|
||||
} else {
|
||||
newUri = request.uri;
|
||||
|
|
Loading…
Reference in New Issue