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>
18 lines
No EOL
610 B
Text
18 lines
No EOL
610 B
Text
// Translates a logical route into its pages asset path (relative from a common prefix)
|
|
// "asset path" being its javascript file, data file, prerendered html,...
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "default", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return getAssetPathFromRoute;
|
|
}
|
|
});
|
|
function getAssetPathFromRoute(route, ext = '') {
|
|
const path = route === '/' ? '/index' : /^\/index(\/|$)/.test(route) ? `/index${route}` : route;
|
|
return path + ext;
|
|
}
|
|
|
|
//# sourceMappingURL=get-asset-path-from-route.js.map |