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>
21 lines
No EOL
646 B
Text
21 lines
No EOL
646 B
Text
import { RSC_PREFETCH_SUFFIX } from '../../../lib/constants';
|
|
import { SuffixPathnameNormalizer } from './suffix';
|
|
export class PrefetchRSCPathnameNormalizer extends SuffixPathnameNormalizer {
|
|
constructor(){
|
|
super(RSC_PREFETCH_SUFFIX);
|
|
}
|
|
match(pathname) {
|
|
if (pathname === '/__index' + RSC_PREFETCH_SUFFIX) {
|
|
return true;
|
|
}
|
|
return super.match(pathname);
|
|
}
|
|
normalize(pathname, matched) {
|
|
if (pathname === '/__index' + RSC_PREFETCH_SUFFIX) {
|
|
return '/';
|
|
}
|
|
return super.normalize(pathname, matched);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=prefetch-rsc.js.map |