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>
33 lines
No EOL
1.2 KiB
Text
33 lines
No EOL
1.2 KiB
Text
import { normalizeAppPath } from '../../../../shared/lib/router/utils/app-paths';
|
|
import { Normalizers } from '../../normalizers';
|
|
import { wrapNormalizerFn } from '../../wrap-normalizer-fn';
|
|
import { UnderscoreNormalizer } from '../../underscore-normalizer';
|
|
export class AppPathnameNormalizer extends Normalizers {
|
|
constructor(){
|
|
super([
|
|
// The pathname to match should have the trailing `/page` and other route
|
|
// group information stripped from it.
|
|
wrapNormalizerFn(normalizeAppPath),
|
|
// The page should have the `%5F` characters replaced with `_` characters.
|
|
new UnderscoreNormalizer()
|
|
]);
|
|
}
|
|
normalize(page) {
|
|
return super.normalize(page);
|
|
}
|
|
}
|
|
export class DevAppPathnameNormalizer extends Normalizers {
|
|
constructor(pageNormalizer){
|
|
super([
|
|
// This should normalize the filename to a page.
|
|
pageNormalizer,
|
|
// Normalize the app page to a pathname.
|
|
new AppPathnameNormalizer()
|
|
]);
|
|
}
|
|
normalize(filename) {
|
|
return super.normalize(filename);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=app-pathname-normalizer.js.map |