UNPKG

@viewdo/dxp-story-cli

Version:

DXP Story Management CLI

26 lines 1.11 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDNConfiguration = void 0; const ConventionService_1 = require("./../../services/ConventionService"); const typedi_1 = __importDefault(require("typedi")); class CDNConfiguration { constructor() { /** * If enabled, the /assets folder in each story will be uploaded * to the configured GCP bucket when the PUSH command is called. * * Note: If the service-account.json file needed to authenticate * against GCP is missing, the push command will fail. */ this.enabled = false; const conventions = typedi_1.default.get(ConventionService_1.ConventionService); this.bucket = conventions.bucket; this.assets_folder = conventions.assets_folder; this.rootUrl = conventions.bucket_vanity_url; } } exports.CDNConfiguration = CDNConfiguration; //# sourceMappingURL=CDNConfiguration.js.map