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>
1 line
No EOL
1.3 KiB
Text
1 line
No EOL
1.3 KiB
Text
{"version":3,"sources":["../../src/client/remove-locale.ts"],"sourcesContent":["import { parsePath } from '../shared/lib/router/utils/parse-path'\n\nexport function removeLocale(path: string, locale?: string) {\n if (process.env.__NEXT_I18N_SUPPORT) {\n const { pathname } = parsePath(path)\n const pathLower = pathname.toLowerCase()\n const localeLower = locale?.toLowerCase()\n\n return locale &&\n (pathLower.startsWith(`/${localeLower}/`) ||\n pathLower === `/${localeLower}`)\n ? `${pathname.length === locale.length + 1 ? `/` : ``}${path.slice(\n locale.length + 1\n )}`\n : path\n }\n return path\n}\n"],"names":["removeLocale","path","locale","process","env","__NEXT_I18N_SUPPORT","pathname","parsePath","pathLower","toLowerCase","localeLower","startsWith","length","slice"],"mappings":";;;;+BAEgBA;;;eAAAA;;;2BAFU;AAEnB,SAASA,aAAaC,IAAY,EAAEC,MAAe;IACxD,IAAIC,QAAQC,GAAG,CAACC,mBAAmB,EAAE;QACnC,MAAM,EAAEC,QAAQ,EAAE,GAAGC,IAAAA,oBAAS,EAACN;QAC/B,MAAMO,YAAYF,SAASG,WAAW;QACtC,MAAMC,cAAcR,QAAQO;QAE5B,OAAOP,UACJM,CAAAA,UAAUG,UAAU,CAAC,CAAC,CAAC,EAAED,YAAY,CAAC,CAAC,KACtCF,cAAc,CAAC,CAAC,EAAEE,aAAa,AAAD,IAC9B,GAAGJ,SAASM,MAAM,KAAKV,OAAOU,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAGX,KAAKY,KAAK,CAC9DX,OAAOU,MAAM,GAAG,IACf,GACHX;IACN;IACA,OAAOA;AACT","ignoreList":[0]} |