@squiz/dxp-cli-next 5.22.1 → 5.23.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cmp/deploy.js +1 -3
- package/package.json +1 -1
package/lib/cmp/deploy.js
CHANGED
|
@@ -74,6 +74,7 @@ const deployCommand = new commander_1.Command()
|
|
|
74
74
|
const componentServiceUrl = ((_b = options.componentServiceUrl) === null || _b === void 0 ? void 0 : _b.replace(/v1\/?$/, '')) ||
|
|
75
75
|
(yield buildComponentServiceUrl(options.tenant));
|
|
76
76
|
if (def.type === 'server') {
|
|
77
|
+
console.info(cli_color_1.default.yellow('INFO: Edge components are a new way to develop your component code offering a more stable runtime implementation of the DXP Component Service. Documentation outlining the benefits of Edge components along with Edge component development & migration guidelines can be found in DXP Component Service documentation: at https://docs.squiz.net/component-service/latest/tutorials/components-at-edge/index.html .'));
|
|
77
78
|
yield definitions_1.ComponentPreUpload.forServer(def, outputDir);
|
|
78
79
|
if (options.dryRun) {
|
|
79
80
|
console.info(cli_color_1.default.yellow('INFO: Cancelling deployment due to --dry-run flag'));
|
|
@@ -82,9 +83,6 @@ const deployCommand = new commander_1.Command()
|
|
|
82
83
|
yield (0, component_cli_lib_1.uploadComponentFolder)(apiService.client, componentServiceUrl, outputDir, dxpCacheDirPath);
|
|
83
84
|
}
|
|
84
85
|
if (def.type === 'edge') {
|
|
85
|
-
if (process.env.FEATURE_EDGE_COMPONENTS !== 'true') {
|
|
86
|
-
throw new Error('Component type "edge" is still in development. Run with environment variable "FEATURE_EDGE_COMPONENTS=true" to enable');
|
|
87
|
-
}
|
|
88
86
|
yield definitions_1.ComponentPreUpload.forEdge(def, outputDir);
|
|
89
87
|
if (options.dryRun) {
|
|
90
88
|
console.info(cli_color_1.default.yellow('INFO: Cancelling deployment due to --dry-run flag'));
|