UNPKG

forge-deploy-cli

Version:

Professional CLI for local deployments with automatic subdomain routing, SSL certificates, and infrastructure management

35 lines 1.54 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudflareService = void 0; const chalk_1 = __importDefault(require("chalk")); /** * Cloudflare service for CLI - now delegates to API * * Note: For security reasons, Cloudflare API tokens are managed server-side. * This service provides a compatibility layer but all DNS operations are * handled via the Forge API endpoints. */ class CloudflareService { /** * @deprecated Use ForgeApiService.createSubdomain() instead * This method is maintained for compatibility but delegates to the API */ static async updateSubdomainRecord(subdomain, publicIP) { console.log(chalk_1.default.yellow('Direct Cloudflare API access has been moved to server-side for security.')); console.log(chalk_1.default.gray('Use the Forge API endpoints for DNS management.')); throw new Error('Direct Cloudflare access is no longer supported. Use ForgeApiService.createSubdomain() instead.'); } /** * @deprecated Cloudflare credentials are now managed server-side */ static async loadFromCredentials() { console.log(chalk_1.default.yellow('Cloudflare credentials are now managed server-side for security.')); return null; } } exports.CloudflareService = CloudflareService; exports.default = CloudflareService; //# sourceMappingURL=cloudflare.js.map