create project

This commit is contained in:
ismailsosic
2022-12-27 12:05:56 +01:00
parent 2a33a2d3de
commit cd2143287c
16035 changed files with 2489703 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.removeBasePath = removeBasePath;
var _hasBasePath = require("./has-base-path");
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
function removeBasePath(path) {
if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {
if (!(0, _hasBasePath).hasBasePath(path)) {
return path;
}
}
path = path.slice(basePath.length);
if (!path.startsWith('/')) path = `/${path}`;
return path;
}
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=remove-base-path.js.map