Rocky_Mountain_Vending/.pnpm-store/v10/files/85/85d4564687768eb8df0d1ea63f2f6e31ff412c3cf27c72acdcd0cd0ed03880773b2a7338485412880eaed8e4ca25e5012e3f50bfd894a2d5a851eb60fea084
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
706 B
Text

import path from 'path';
import { pathToFileURL } from 'url';
/**
* The path for a dynamic route must be URLs with a valid scheme.
*
* When an absolute Windows path is passed to it, it interprets the beginning of the path as a protocol (`C:`).
* Therefore, it is important to always construct a complete path.
* @param dir File directory
* @param filePath Absolute or relative path
*/ export const formatDynamicImportPath = (dir, filePath)=>{
const absoluteFilePath = path.isAbsolute(filePath) ? filePath : path.join(dir, filePath);
const formattedFilePath = pathToFileURL(absoluteFilePath).toString();
return formattedFilePath;
};
//# sourceMappingURL=format-dynamic-import-path.js.map