Rocky_Mountain_Vending/.pnpm-store/v10/files/77/fd09c4f96b9d369d725061cc13817222e1763a6e4c9c76b64fd2375cb0d10978ac15f1bfabf12c0dd8d114d39d68d58014cae7a9f5f259e277021b103fdb8a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

22 lines
No EOL
709 B
Text

import { RSC_SEGMENT_SUFFIX, RSC_SEGMENTS_DIR_SUFFIX } from '../../../lib/constants';
const PATTERN = new RegExp(`^(/.*)${RSC_SEGMENTS_DIR_SUFFIX}(/.*)${RSC_SEGMENT_SUFFIX}$`);
export class SegmentPrefixRSCPathnameNormalizer {
match(pathname) {
return PATTERN.test(pathname);
}
extract(pathname) {
const match = pathname.match(PATTERN);
if (!match) return null;
return {
originalPathname: match[1],
segmentPath: match[2]
};
}
normalize(pathname) {
const match = this.extract(pathname);
if (!match) return pathname;
return match.originalPathname;
}
}
//# sourceMappingURL=segment-prefix-rsc.js.map