Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
31
node_modules/next/dist/server/normalizers/request/prefetch-rsc.js
generated
vendored
Normal file
31
node_modules/next/dist/server/normalizers/request/prefetch-rsc.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "PrefetchRSCPathnameNormalizer", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return PrefetchRSCPathnameNormalizer;
|
||||
}
|
||||
});
|
||||
const _constants = require("../../../lib/constants");
|
||||
const _suffix = require("./suffix");
|
||||
class PrefetchRSCPathnameNormalizer extends _suffix.SuffixPathnameNormalizer {
|
||||
constructor(){
|
||||
super(_constants.RSC_PREFETCH_SUFFIX);
|
||||
}
|
||||
match(pathname) {
|
||||
if (pathname === '/__index' + _constants.RSC_PREFETCH_SUFFIX) {
|
||||
return true;
|
||||
}
|
||||
return super.match(pathname);
|
||||
}
|
||||
normalize(pathname, matched) {
|
||||
if (pathname === '/__index' + _constants.RSC_PREFETCH_SUFFIX) {
|
||||
return '/';
|
||||
}
|
||||
return super.normalize(pathname, matched);
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=prefetch-rsc.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue