Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

V3 this.app.config.get doesn't behave as expected #320

Open
matteozambon89 opened this issue Mar 7, 2018 · 1 comment
Open

V3 this.app.config.get doesn't behave as expected #320

matteozambon89 opened this issue Mar 7, 2018 · 1 comment

Comments

@matteozambon89
Copy link

@jaumard I think I found another issue with the config.

On trailpack-koa I have:

// index.js
...
configure() {
...
// line 56
this.app.config.set('web', result[1])
...
}
...

which updates the current configuration with various defaults and checks using JOI.

Now if on my app or another trailpack I see this result:

this.app.config.get('web.server') // undefined
this.app.config.get.web.server // 'koa'

I've been careful to ask for this config value after trailpack-koa 's configure method is completed.

@jaumard
Copy link
Contributor

jaumard commented Mar 21, 2018

Try with the last version v3.2.1 do you still have the issue ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants