devsite/node_modules/@11ty/eleventy/src/Util/NormalizeServerlessUrl.js

8 lines
188 B
JavaScript
Raw Normal View History

2024-07-08 01:49:38 +00:00
module.exports = function (url) {
// https://github.com/11ty/eleventy/issues/2067
if (url.endsWith("/*")) {
return url.substring(0, url.length - 2) + "/(.*)";
}
return url;
};