Initial boiler plate project
This commit is contained in:
20
node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
generated
vendored
Normal file
20
node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "addPathPrefix", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return addPathPrefix;
|
||||
}
|
||||
});
|
||||
const _parsepath = require("./parse-path");
|
||||
function addPathPrefix(path, prefix) {
|
||||
if (!path.startsWith("/") || !prefix) {
|
||||
return path;
|
||||
}
|
||||
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
||||
return "" + prefix + pathname + query + hash;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=add-path-prefix.js.map
|
||||
Reference in New Issue
Block a user