has-base-path.js 710 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.hasBasePath = hasBasePath;
  6. var _pathHasPrefix = require("../shared/lib/router/utils/path-has-prefix");
  7. const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
  8. function hasBasePath(path) {
  9. return (0, _pathHasPrefix).pathHasPrefix(path, basePath);
  10. }
  11. if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
  12. Object.defineProperty(exports.default, '__esModule', { value: true });
  13. Object.assign(exports.default, exports);
  14. module.exports = exports.default;
  15. }
  16. //# sourceMappingURL=has-base-path.js.map