Neah/node_modules/next/dist/server/normalizers/request/base-path.js
2025-04-24 17:19:14 +02:00

25 lines
751 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "BasePathPathnameNormalizer", {
enumerable: true,
get: function() {
return BasePathPathnameNormalizer;
}
});
const _prefix = require("./prefix");
class BasePathPathnameNormalizer extends _prefix.PrefixPathnameNormalizer {
constructor(basePath){
if (!basePath || basePath === '/') {
throw Object.defineProperty(new Error('Invariant: basePath must be set and cannot be "/"'), "__NEXT_ERROR_CODE", {
value: "E154",
enumerable: false,
configurable: true
});
}
super(basePath);
}
}
//# sourceMappingURL=base-path.js.map