Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
25
node_modules/next/dist/server/normalizers/request/base-path.js
generated
vendored
Normal file
25
node_modules/next/dist/server/normalizers/request/base-path.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"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
|
||||
Loading…
Add table
Add a link
Reference in a new issue