@gradientedge/cdk-utils 9.53.2 → 9.54.0
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.
|
@@ -95,7 +95,7 @@ class CommonAzureStack extends cdktf_1.TerraformStack {
|
|
|
95
95
|
* - Primary use is to have layered config for each environment which is injected into the context
|
|
96
96
|
*/
|
|
97
97
|
determineStageContexts() {
|
|
98
|
-
const stage = this.node.tryGetContext('stage');
|
|
98
|
+
const stage = process.env.STAGE ?? this.node.tryGetContext('stage');
|
|
99
99
|
const stageContextPath = this.node.tryGetContext('stageContextPath') || 'cdkEnv';
|
|
100
100
|
const stageContextFilePath = path_1.default.join(app_root_path_1.default.path, stageContextPath, `${stage}.json`);
|
|
101
101
|
const debug = this.node.tryGetContext('debug');
|
|
@@ -88,7 +88,7 @@ class CommonCloudflareStack extends cdktf_1.TerraformStack {
|
|
|
88
88
|
* - Primary use is to have layered config for each environment which is injected into the context
|
|
89
89
|
*/
|
|
90
90
|
determineStageContexts() {
|
|
91
|
-
const stage = this.node.tryGetContext('stage');
|
|
91
|
+
const stage = process.env.STAGE ?? this.node.tryGetContext('stage');
|
|
92
92
|
const stageContextPath = this.node.tryGetContext('stageContextPath') || 'cdkEnv';
|
|
93
93
|
const stageContextFilePath = path_1.default.join(app_root_path_1.default.path, stageContextPath, `${stage}.json`);
|
|
94
94
|
const debug = this.node.tryGetContext('debug');
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@ export class CommonAzureStack extends TerraformStack {
|
|
|
104
104
|
* - Primary use is to have layered config for each environment which is injected into the context
|
|
105
105
|
*/
|
|
106
106
|
protected determineStageContexts() {
|
|
107
|
-
const stage = this.node.tryGetContext('stage')
|
|
107
|
+
const stage = process.env.STAGE ?? this.node.tryGetContext('stage')
|
|
108
108
|
const stageContextPath = this.node.tryGetContext('stageContextPath') || 'cdkEnv'
|
|
109
109
|
const stageContextFilePath = path.join(appRoot.path, stageContextPath, `${stage}.json`)
|
|
110
110
|
const debug = this.node.tryGetContext('debug')
|
|
@@ -97,7 +97,7 @@ export class CommonCloudflareStack extends TerraformStack {
|
|
|
97
97
|
* - Primary use is to have layered config for each environment which is injected into the context
|
|
98
98
|
*/
|
|
99
99
|
protected determineStageContexts() {
|
|
100
|
-
const stage = this.node.tryGetContext('stage')
|
|
100
|
+
const stage = process.env.STAGE ?? this.node.tryGetContext('stage')
|
|
101
101
|
const stageContextPath = this.node.tryGetContext('stageContextPath') || 'cdkEnv'
|
|
102
102
|
const stageContextFilePath = path.join(appRoot.path, stageContextPath, `${stage}.json`)
|
|
103
103
|
const debug = this.node.tryGetContext('debug')
|