Rocky_Mountain_Vending/.pnpm-store/v10/files/e3/57cceb41c2c99b75bfd276e232127b02ac6649af7c44245cf63993babe39c1b16a6c2498974a673700b6f1bf2ce6e41f7455687260577c21cbde24017ade49
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

21 lines
No EOL
832 B
Text

import { Agent as HttpAgent } from 'http';
import { Agent as HttpsAgent } from 'https';
export function setHttpClientAndAgentOptions(config) {
if (globalThis.__NEXT_HTTP_AGENT) {
// We only need to assign once because we want
// to reuse the same agent for all requests.
return;
}
if (!config) {
throw Object.defineProperty(new Error('Expected config.httpAgentOptions to be an object'), "__NEXT_ERROR_CODE", {
value: "E204",
enumerable: false,
configurable: true
});
}
globalThis.__NEXT_HTTP_AGENT_OPTIONS = config.httpAgentOptions;
globalThis.__NEXT_HTTP_AGENT = new HttpAgent(config.httpAgentOptions);
globalThis.__NEXT_HTTPS_AGENT = new HttpsAgent(config.httpAgentOptions);
}
//# sourceMappingURL=setup-http-agent-env.js.map