Rocky_Mountain_Vending/.pnpm-store/v10/files/4a/d75beaf313d6aab7b5dbbd8b43007cd9006e0417c74cf590c679034b1cb33211d9ffa2ee1bd6d0396fddca0bcec8884321ab6222d2ff57de9c7170aca8bc6e
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

16 lines
No EOL
526 B
Text

import { hasBasePath } from './has-base-path';
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
export function removeBasePath(path) {
if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {
if (!hasBasePath(path)) {
return path;
}
}
// Can't trim the basePath if it has zero length!
if (basePath.length === 0) return path;
path = path.slice(basePath.length);
if (!path.startsWith('/')) path = `/${path}`;
return path;
}
//# sourceMappingURL=remove-base-path.js.map