Rocky_Mountain_Vending/.pnpm-store/v10/files/fa/d116c1c0b3ca5ad008c756fedc8c8e1647334f935c80d05000c2cd1be0767330e787e7b0a2c50ecbd87c71d08e83be5534dccd0b4efe5f45a8a765305fdde2
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

46 lines
No EOL
1.4 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "buildCustomRoute", {
enumerable: true,
get: function() {
return buildCustomRoute;
}
});
const _pathtoregexp = require("next/dist/compiled/path-to-regexp");
const _loadcustomroutes = require("./load-custom-routes");
const _redirectstatus = require("./redirect-status");
function buildCustomRoute(type, route, restrictedRedirectPaths) {
const compiled = (0, _pathtoregexp.pathToRegexp)(route.source, [], {
strict: true,
sensitive: false,
delimiter: '/'
});
let source = compiled.source;
if (!route.internal) {
source = (0, _redirectstatus.modifyRouteRegex)(source, type === 'redirect' ? restrictedRedirectPaths : undefined);
}
// If this is an internal rewrite and it already provides a regex, use it
// otherwise, normalize the source to a regex.
let regex;
if (!route.internal || type !== 'rewrite' || !('regex' in route) || typeof route.regex !== 'string') {
regex = (0, _loadcustomroutes.normalizeRouteRegex)(source);
} else {
regex = route.regex;
}
if (type !== 'redirect') {
return {
...route,
regex
};
}
return {
...route,
statusCode: (0, _redirectstatus.getRedirectStatus)(route),
permanent: undefined,
regex
};
}
//# sourceMappingURL=build-custom-route.js.map