[TIMOB-27929] Liveview reload on Device reads wrong config.json environment
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 8.3.0, Release 9.0.0, Release 9.0.2 |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Thijs |
| Assignee | Ewan Harris |
| Created | 2020-06-03T09:46:33.000+0000 |
| Updated | 2021-02-22T20:01:48.000+0000 |
Description
When reloading LiveView when deployed to device the environment property from config.json is read wrongly.
To reproduce, add this to
config.json
"env:development": {
"env": "dev"
},
"env:test": {
"env": "test"
},
"env:production": {
"env": "prod"
},
Add this to index.js
console.log(Ti.App.deployType, Alloy.CFG.env);
Log on first compile will say test test
Log on liveview reload will say test dev
*Expected result*
On device builds the test environment should always be read.
No comments