Rocky_Mountain_Vending/.pnpm-store/v10/files/20/417dffd23966ac6f06dc427efac4b6d7aad0c780b5438120267d8e915af1b35fcb59b58275576e37dc6e9d04d4b720b081b4fa0503e26400a155346132f274
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

15 lines
No EOL
481 B
Text

import { pathHasPrefix } from '../router/utils/path-has-prefix';
/**
* strip _next/data/<build-id>/ prefix and .json suffix
*/ export function normalizeDataPath(pathname) {
if (!pathHasPrefix(pathname || '/', '/_next/data')) {
return pathname;
}
pathname = pathname.replace(/\/_next\/data\/[^/]{1,}/, '').replace(/\.json$/, '');
if (pathname === '/index') {
return '/';
}
return pathname;
}
//# sourceMappingURL=normalize-data-path.js.map