Rocky_Mountain_Vending/.pnpm-store/v10/files/35/f176cc72e5b775532f300928f0ba525709703cf0c6a612953de798007539b50b44809c644e1deab34acce59e437a46801b9e9ea52979c7616f44fe04544146
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

23 lines
No EOL
834 B
Text

import { RedirectStatusCode } from '../client/components/redirect-status-code';
export const allowedStatusCodes = new Set([
301,
302,
303,
307,
308
]);
export function getRedirectStatus(route) {
return route.statusCode || (route.permanent ? RedirectStatusCode.PermanentRedirect : RedirectStatusCode.TemporaryRedirect);
}
// for redirects we restrict matching /_next and for all routes
// we add an optional trailing slash at the end for easier
// configuring between trailingSlash: true/false
export function modifyRouteRegex(regex, restrictedPaths) {
if (restrictedPaths) {
regex = regex.replace(/\^/, `^(?!${restrictedPaths.map((path)=>path.replace(/\//g, '\\/')).join('|')})`);
}
regex = regex.replace(/\$$/, '(?:\\/)?$');
return regex;
}
//# sourceMappingURL=redirect-status.js.map