Meteor-Community-Packages / Meteor-Community-Packages/raix-push
production: false not working as expected
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
I upgraded from an earlier version of `raix:push` to the latest 3.0.2 and replaced `config.push.json`with the new JS-based configuration `Push.Configure()`.
However, whatever I try, I cannot set `production: false`. If I configure it like this:
```
{
apn: {
...
production: false,
...
},
production: false,
}
```
the server still prints:
```
WARNING: Push APN is configured to production mode - but server is running from localhost
```
I am also wondering why there are multiple `production` flags and not just one?
Contributor guide
Research direction
Start with the `Push.Configure()` configuration shown in the issue and trace how its `production` values are read when the server starts. Reproduce the localhost warning with `production: false`, then verify which configuration value controls the mode and whether the behavior is consistent with the documented configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100