Rocky_Mountain_Vending/.pnpm-store/v10/files/1f/c868b207642cace6dbfec134fcf4c0adec6b68cd48086f7040a7bab063205230fe280389d3bb8de3e870eee84908f5d802e5676ab4d6ef7c1ffbd2b0e3c6a9
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

35 lines
No EOL
1.2 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return getRouteFromEntrypoint;
}
});
const _getapproutefromentrypoint = /*#__PURE__*/ _interop_require_default(require("./get-app-route-from-entrypoint"));
const _matchbundle = /*#__PURE__*/ _interop_require_default(require("./match-bundle"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
// matches pages/:page*.js
const SERVER_ROUTE_NAME_REGEX = /^pages[/\\](.*)$/;
// matches static/pages/:page*.js
const BROWSER_ROUTE_NAME_REGEX = /^static[/\\]pages[/\\](.*)$/;
function getRouteFromEntrypoint(entryFile, app) {
let pagePath = (0, _matchbundle.default)(SERVER_ROUTE_NAME_REGEX, entryFile);
if (pagePath) {
return pagePath;
}
if (app) {
pagePath = (0, _getapproutefromentrypoint.default)(entryFile);
if (pagePath) return pagePath;
}
// Potentially the passed item is a browser bundle so we try to match that also
return (0, _matchbundle.default)(BROWSER_ROUTE_NAME_REGEX, entryFile);
}
//# sourceMappingURL=get-route-from-entrypoint.js.map