@oondemand/oon-core-back 0.5.4 → 0.5.5

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/README.md CHANGED
@@ -30,6 +30,10 @@ Compatibilidade temporária: `CENTRAL_ATIVACAO_BACKEND_URL` e `MEUS_APPS_BACKEND
30
30
  - `GET /health/ready`: retorna HTTP 200 somente quando o MongoDB está conectado; retorna 503 enquanto o runtime não estiver pronto.
31
31
  - `GET /health/version`: expõe as versões do OonCore e da Central, commit, release, build e ambiente da publicação.
32
32
 
33
+ O campo `deployment.environment` usa exclusivamente `APP_ENVIRONMENT`. A variável
34
+ `NODE_ENV=production` configura a execução técnica do Node dentro da imagem e não
35
+ representa o ambiente lógico da publicação.
36
+
33
37
  Na imagem de entrega, essas rotas são publicadas pelo Nginx sob `/api/health/ready` e `/api/health/version`.
34
38
 
35
39
  ## Fluxo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oondemand/oon-core-back",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/oondemand/oon-platform.git",
@@ -97,11 +97,7 @@ function runtimeSummary() {
97
97
  process.env.SOURCE_UPDATED_AT,
98
98
  ),
99
99
  startedAt,
100
- environment: firstValue(
101
- process.env.OON_ENVIRONMENT,
102
- process.env.DEPLOY_ENVIRONMENT,
103
- process.env.NODE_ENV,
104
- ),
100
+ environment: firstValue(process.env.APP_ENVIRONMENT),
105
101
  },
106
102
  };
107
103
  }