Rocky_Mountain_Vending/.pnpm-store/v10/files/75/ca9856b966f29288cce6a51d5e707485963860f3570c54e82150bd1f2297b550bcdb8d01c087a41c406c66238361929a55c955d96b620ae3ce0e50ebac8ff1
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

1 line
No EOL
5 KiB
Text

{"version":3,"sources":["../../../../src/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.ts"],"sourcesContent":["import type { FileReader } from './helpers/file-reader/file-reader'\nimport {\n PagesRouteMatcher,\n PagesLocaleRouteMatcher,\n} from '../../route-matchers/pages-route-matcher'\nimport { RouteKind } from '../../route-kind'\nimport path from 'path'\nimport type { LocaleRouteNormalizer } from '../../normalizers/locale-route-normalizer'\nimport { FileCacheRouteMatcherProvider } from './file-cache-route-matcher-provider'\nimport { DevPagesNormalizers } from '../../normalizers/built/pages'\n\nexport class DevPagesRouteMatcherProvider extends FileCacheRouteMatcherProvider<PagesRouteMatcher> {\n private readonly expression: RegExp\n private readonly normalizers: DevPagesNormalizers\n\n constructor(\n private readonly pagesDir: string,\n private readonly extensions: ReadonlyArray<string>,\n reader: FileReader,\n private readonly localeNormalizer?: LocaleRouteNormalizer\n ) {\n super(pagesDir, reader)\n\n // Match any route file that ends with `/${filename}.${extension}` under the\n // pages directory.\n this.expression = new RegExp(`\\\\.(?:${extensions.join('|')})$`)\n\n this.normalizers = new DevPagesNormalizers(pagesDir, extensions)\n }\n\n private test(filename: string): boolean {\n // If the file does not end in the correct extension it's not a match.\n if (!this.expression.test(filename)) return false\n\n // Pages routes must exist in the pages directory without the `/api/`\n // prefix. The pathnames being tested here though are the full filenames,\n // so we need to include the pages directory.\n\n // TODO: could path separator normalization be needed here?\n if (filename.startsWith(path.join(this.pagesDir, '/api/'))) return false\n\n for (const extension of this.extensions) {\n // We can also match if we have `pages/api.${extension}`, so check to\n // see if it's a match.\n if (filename === path.join(this.pagesDir, `api.${extension}`)) {\n return false\n }\n }\n\n return true\n }\n\n protected async transform(\n files: ReadonlyArray<string>\n ): Promise<ReadonlyArray<PagesRouteMatcher>> {\n const matchers: Array<PagesRouteMatcher> = []\n for (const filename of files) {\n // If the file isn't a match for this matcher, then skip it.\n if (!this.test(filename)) continue\n\n const pathname = this.normalizers.pathname.normalize(filename)\n const page = this.normalizers.page.normalize(filename)\n const bundlePath = this.normalizers.bundlePath.normalize(filename)\n\n if (this.localeNormalizer) {\n matchers.push(\n new PagesLocaleRouteMatcher({\n kind: RouteKind.PAGES,\n pathname,\n page,\n bundlePath,\n filename,\n i18n: {},\n })\n )\n } else {\n matchers.push(\n new PagesRouteMatcher({\n kind: RouteKind.PAGES,\n pathname,\n page,\n bundlePath,\n filename,\n })\n )\n }\n }\n\n return matchers\n }\n}\n"],"names":["DevPagesRouteMatcherProvider","FileCacheRouteMatcherProvider","constructor","pagesDir","extensions","reader","localeNormalizer","expression","RegExp","join","normalizers","DevPagesNormalizers","test","filename","startsWith","path","extension","transform","files","matchers","pathname","normalize","page","bundlePath","push","PagesLocaleRouteMatcher","kind","RouteKind","PAGES","i18n","PagesRouteMatcher"],"mappings":";;;;+BAWaA;;;eAAAA;;;mCAPN;2BACmB;6DACT;+CAE6B;uBACV;;;;;;AAE7B,MAAMA,qCAAqCC,4DAA6B;IAI7EC,YACE,AAAiBC,QAAgB,EACjC,AAAiBC,UAAiC,EAClDC,MAAkB,EAClB,AAAiBC,gBAAwC,CACzD;QACA,KAAK,CAACH,UAAUE,cALCF,WAAAA,eACAC,aAAAA,iBAEAE,mBAAAA;QAIjB,4EAA4E;QAC5E,mBAAmB;QACnB,IAAI,CAACC,UAAU,GAAG,IAAIC,OAAO,CAAC,MAAM,EAAEJ,WAAWK,IAAI,CAAC,KAAK,EAAE,CAAC;QAE9D,IAAI,CAACC,WAAW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