@stoker-platform/cli 0.5.162 → 0.5.163

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.
@@ -125,7 +125,8 @@ try {
125
125
  const projectSpecificEnvFile = join(envDir, `.env.${process.env.GCP_PROJECT}`)
126
126
 
127
127
  let envContent = ""
128
- const envPattern = /^(FB_FIRESTORE_EDITION|FB_FUNCTIONS_|FB_AI_REGION|STOKER_(?!FB_APP_CHECK_DEBUG_TOKEN)|ADMIN_)/
128
+ const envPattern =
129
+ /^(FB_FIRESTORE_EDITION|FB_FUNCTIONS_|FB_AI_REGION|GENKIT_ENV|STOKER_(?!FB_APP_CHECK_DEBUG_TOKEN)|ADMIN_)/
129
130
 
130
131
  if (existsSync(projectEnvFile)) {
131
132
  const projectEnvContent = await readFile(projectEnvFile, "utf8")
@@ -146,6 +147,9 @@ try {
146
147
  const filteredLines = allLines.filter((line) => envPattern.test(line.trim()))
147
148
  envContent = filteredLines.join("\n")
148
149
  }
150
+ if (!/^\s*GENKIT_ENV\s*=/m.test(envContent)) {
151
+ envContent = envContent ? `${envContent}\nGENKIT_ENV="prod"` : `GENKIT_ENV="prod"`
152
+ }
149
153
 
150
154
  await writeFile(functionsEnvPath, envContent, "utf8")
151
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/cli",
3
- "version": "0.5.162",
3
+ "version": "0.5.163",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./lib/src/main.js",