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

53 lines
No EOL
1.9 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ImageResponse", {
enumerable: true,
get: function() {
return ImageResponse;
}
});
function importModule() {
return import(process.env.NEXT_RUNTIME === 'edge' ? 'next/dist/compiled/@vercel/og/index.edge.js' : 'next/dist/compiled/@vercel/og/index.node.js');
}
class ImageResponse extends Response {
static #_ = this.displayName = 'ImageResponse';
constructor(...args){
const readable = new ReadableStream({
async start (controller) {
const OGImageResponse = // So far we have to manually determine which build to use,
// as the auto resolving is not working
(await importModule()).ImageResponse;
const imageResponse = new OGImageResponse(...args);
if (!imageResponse.body) {
return controller.close();
}
const reader = imageResponse.body.getReader();
while(true){
const { done, value } = await reader.read();
if (done) {
return controller.close();
}
controller.enqueue(value);
}
}
});
const options = args[1] || {};
const headers = new Headers({
'content-type': 'image/png',
'cache-control': process.env.NODE_ENV === 'development' ? 'no-cache, no-store' : 'public, max-age=0, must-revalidate'
});
if (options.headers) {
const newHeaders = new Headers(options.headers);
newHeaders.forEach((value, key)=>headers.set(key, value));
}
super(readable, {
headers,
status: options.status,
statusText: options.statusText
});
}
}
//# sourceMappingURL=image-response.js.map