Rocky_Mountain_Vending/.pnpm-store/v10/files/fc/6e92db9ffbc54483730b88f640c472164bd23d72fb6d727322f326559df88d2dfc44977992771a950156496ca2fa1a6d83157954a7ee2cea73b6ba57a774fc
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

33 lines
922 B
Text

// @ts-ignore entry point will get replaced
import worker from "__ENTRY_POINT__";
import { isRoutingRuleMatch } from "./pages-dev-util";
// @ts-ignore entry point will get replaced
export * from "__ENTRY_POINT__";
// @ts-ignore routes are injected
const routes = __ROUTES__;
export default <ExportedHandler<{ ASSETS: Fetcher }>>{
fetch(request, env, context) {
const { pathname } = new URL(request.url);
for (const exclude of routes.exclude) {
if (isRoutingRuleMatch(pathname, exclude)) {
return env.ASSETS.fetch(request);
}
}
for (const include of routes.include) {
if (isRoutingRuleMatch(pathname, include)) {
const workerAsHandler = worker as ExportedHandler;
if (workerAsHandler.fetch === undefined) {
throw new TypeError("Entry point missing `fetch` handler");
}
return workerAsHandler.fetch(request, env, context);
}
}
return env.ASSETS.fetch(request);
},
};