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>
32 lines
No EOL
1.1 KiB
Text
32 lines
No EOL
1.1 KiB
Text
import { Normalizers } from '../../normalizers';
|
|
import { PrefixingNormalizer } from '../../prefixing-normalizer';
|
|
import { normalizePagePath } from '../../../../shared/lib/page-path/normalize-page-path';
|
|
import { UnderscoreNormalizer } from '../../underscore-normalizer';
|
|
export class AppBundlePathNormalizer extends PrefixingNormalizer {
|
|
constructor(){
|
|
super('app');
|
|
}
|
|
normalize(page) {
|
|
return super.normalize(normalizePagePath(page));
|
|
}
|
|
}
|
|
export class DevAppBundlePathNormalizer extends Normalizers {
|
|
constructor(pageNormalizer, isTurbopack){
|
|
const normalizers = [
|
|
// This should normalize the filename to a page.
|
|
pageNormalizer,
|
|
// Normalize the app page to a pathname.
|
|
new AppBundlePathNormalizer()
|
|
];
|
|
// %5F to _ replacement should only happen with Turbopack.
|
|
if (isTurbopack) {
|
|
normalizers.unshift(new UnderscoreNormalizer());
|
|
}
|
|
super(normalizers);
|
|
}
|
|
normalize(filename) {
|
|
return super.normalize(filename);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=app-bundle-path-normalizer.js.map |