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":["parsePath","removeLocale","path","locale","process","env","__NEXT_I18N_SUPPORT","pathname","pathLower","toLowerCase","localeLower","startsWith","length","slice"],"mappings":"AAAA,SAASA,SAAS,QAAQ,wCAAuC;AAEjE,OAAO,SAASC,aAAaC,IAAY,EAAEC,MAAe;IACxD,IAAIC,QAAQC,GAAG,CAACC,mBAAmB,EAAE;QACnC,MAAM,EAAEC,QAAQ,EAAE,GAAGP,UAAUE;QAC/B,MAAMM,YAAYD,SAASE,WAAW;QACtC,MAAMC,cAAcP,QAAQM;QAE5B,OAAON,UACJK,CAAAA,UAAUG,UAAU,CAAC,CAAC,CAAC,EAAED,YAAY,CAAC,CAAC,KACtCF,cAAc,CAAC,CAAC,EAAEE,aAAa,AAAD,IAC9B,GAAGH,SAASK,MAAM,KAAKT,OAAOS,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAGV,KAAKW,KAAK,CAC9DV,OAAOS,MAAM,GAAG,IACf,GACHV;IACN;IACA,OAAOA;AACT","ignoreList":[0]} |