Rocky_Mountain_Vending/.pnpm-store/v10/files/46/21c3943c23981be66f42c3c6c52eea2ad1031b31c4b3c417d43b26bab364a753496e88a11e22757029fb39214f065ebc14da827d2ba732249883488cc30130
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

33 lines
No EOL
1.4 KiB
Text

import { isAppRouteRoute } from '../../lib/is-app-route-route';
import { APP_PATHS_MANIFEST } from '../../shared/lib/constants';
import { RouteKind } from '../route-kind';
import { AppRouteRouteMatcher } from '../route-matchers/app-route-route-matcher';
import { ManifestRouteMatcherProvider } from './manifest-route-matcher-provider';
import { AppNormalizers } from '../normalizers/built/app';
export class AppRouteRouteMatcherProvider extends ManifestRouteMatcherProvider {
constructor(distDir, manifestLoader){
super(APP_PATHS_MANIFEST, manifestLoader);
this.normalizers = new AppNormalizers(distDir);
}
async transform(manifest) {
// This matcher only matches app routes.
const pages = Object.keys(manifest).filter((page)=>isAppRouteRoute(page));
// Format the routes.
const matchers = [];
for (const page of pages){
const filename = this.normalizers.filename.normalize(manifest[page]);
const pathname = this.normalizers.pathname.normalize(page);
const bundlePath = this.normalizers.bundlePath.normalize(page);
matchers.push(new AppRouteRouteMatcher({
kind: RouteKind.APP_ROUTE,
pathname,
page,
bundlePath,
filename
}));
}
return matchers;
}
}
//# sourceMappingURL=app-route-route-matcher-provider.js.map