factory config context + node terminal in it

This commit is contained in:
typescreep
2025-07-29 23:08:13 +03:00
parent b2f735c3c5
commit b4e15d8311
7 changed files with 24 additions and 7 deletions

View File

@@ -54,6 +54,9 @@ const INSTANCES_RESOURCE_NAME =
const BFF_URL = process.env.LOCAL === 'true' ? options?.BFF_URL : process.env.BFF_URL
const NODE_TERMINAL_DEFAULT_PROFILE =
process.env.LOCAL === 'true' ? options?.NODE_TERMINAL_DEFAULT_PROFILE : process.env.NODE_TERMINAL_DEFAULT_PROFILE
const healthcheck = require('express-healthcheck')
const promBundle = require('express-prom-bundle')
@@ -172,7 +175,8 @@ app.get(`${basePrefix ? basePrefix : ''}/env.js`, (_, res) => {
MARKETPLACE_KIND: ${JSON.stringify(MARKETPLACE_KIND) || '"check envs"'},
INSTANCES_API_GROUP: ${JSON.stringify(INSTANCES_API_GROUP) || '"check envs"'},
INSTANCES_VERSION: ${JSON.stringify(INSTANCES_VERSION) || '"check envs"'},
INSTANCES_RESOURCE_NAME: ${JSON.stringify(INSTANCES_RESOURCE_NAME) || '"check envs"'}
INSTANCES_RESOURCE_NAME: ${JSON.stringify(INSTANCES_RESOURCE_NAME) || '"check envs"'},
NODE_TERMINAL_DEFAULT_PROFILE: ${JSON.stringify(NODE_TERMINAL_DEFAULT_PROFILE) || '"general"'}
}
`,
)