next
Version:
The React Framework
17 lines (16 loc) • 666 B
JavaScript
import { denormalizePagePath } from "../../../../shared/lib/page-path/denormalize-page-path";
import { PrefixPathnameNormalizer } from "./prefix";
const prefix = "/_next/postponed/resume";
export class PostponedPathnameNormalizer extends PrefixPathnameNormalizer {
constructor(){
super(prefix);
}
normalize(pathname, matched) {
// If we're not matched and we don't match, we don't need to normalize.
if (!matched && !this.match(pathname)) return pathname;
// Remove the prefix.
pathname = super.normalize(pathname, true);
return denormalizePagePath(pathname);
}
}
//# sourceMappingURL=postponed.js.map