Rocky_Mountain_Vending/.pnpm-store/v10/files/19/203ca797c84e2a2405620b6ebed079cbd28e0c46c2849ebe3ab28fb4b92ce9cf148c410bd9b2e7f9f579af91c5ffba2b699d936cbd5a3a6b1b537d1d04deee
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

28 lines
No EOL
1.1 KiB
Text

import { denormalizePagePath } from '../../../shared/lib/page-path/denormalize-page-path';
import { PrefixPathnameNormalizer } from './prefix';
import { SuffixPathnameNormalizer } from './suffix';
export class NextDataPathnameNormalizer {
constructor(buildID){
this.suffix = new SuffixPathnameNormalizer('.json');
if (!buildID) {
throw Object.defineProperty(new Error('Invariant: buildID is required'), "__NEXT_ERROR_CODE", {
value: "E200",
enumerable: false,
configurable: true
});
}
this.prefix = new PrefixPathnameNormalizer(`/_next/data/${buildID}`);
}
match(pathname) {
return this.prefix.match(pathname) && this.suffix.match(pathname);
}
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;
pathname = this.prefix.normalize(pathname, true);
pathname = this.suffix.normalize(pathname, true);
return denormalizePagePath(pathname);
}
}
//# sourceMappingURL=next-data.js.map