Nicholai 16cee69250 __Admin dashboard scaffolded with D1 database and R2 file uploads__
This commit implements the core admin dashboard functionality including NextAuth authentication, Cloudflare D1 database integration with complete schema, and Cloudflare R2 file upload system for portfolio images. Features include artist management, appointment scheduling, and data migration capabilities.
2025-09-17 16:08:34 -06:00

27 lines
904 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "setHttpClientAndAgentOptions", {
enumerable: true,
get: function() {
return setHttpClientAndAgentOptions;
}
});
const _http = require("http");
const _https = require("https");
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 new Error("Expected config.httpAgentOptions to be an object");
}
globalThis.__NEXT_HTTP_AGENT_OPTIONS = config.httpAgentOptions;
globalThis.__NEXT_HTTP_AGENT = new _http.Agent(config.httpAgentOptions);
globalThis.__NEXT_HTTPS_AGENT = new _https.Agent(config.httpAgentOptions);
}
//# sourceMappingURL=setup-http-agent-env.js.map