Rocky_Mountain_Vending/.pnpm-store/v10/files/c4/9c4621ab204e8d6e8fe9cab4843f04a1521742c7ab8a64c2f6d7e4aeb721f35903a0e02c695586db033977e27687e40db9e17aa355cc18f5a391254a52eefe
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

58 lines
No EOL
2 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
PagesAPIRouteModule: null,
default: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
PagesAPIRouteModule: function() {
return PagesAPIRouteModule;
},
default: function() {
return _default;
}
});
const _apiutils = require("../../api-utils");
const _routemodule = require("../route-module");
const _apiresolver = require("../../api-utils/node/api-resolver");
class PagesAPIRouteModule extends _routemodule.RouteModule {
constructor(options){
super(options);
if (typeof options.userland.default !== 'function') {
throw Object.defineProperty(new Error(`Page ${options.definition.page} does not export a default function.`), "__NEXT_ERROR_CODE", {
value: "E379",
enumerable: false,
configurable: true
});
}
this.apiResolverWrapped = (0, _apiutils.wrapApiHandler)(options.definition.page, _apiresolver.apiResolver);
}
/**
*
* @param req the incoming server request
* @param res the outgoing server response
* @param context the context for the render
*/ async render(req, res, context) {
const { apiResolverWrapped } = this;
await apiResolverWrapped(req, res, context.query, this.userland, {
...context.previewProps,
trustHostHeader: context.trustHostHeader,
allowedRevalidateHeaderKeys: context.allowedRevalidateHeaderKeys,
hostname: context.hostname,
multiZoneDraftMode: context.multiZoneDraftMode,
dev: context.dev,
internalRevalidate: context.internalRevalidate
}, context.propagateError, context.dev, context.page, context.onError);
}
}
const _default = PagesAPIRouteModule;
//# sourceMappingURL=module.js.map