Skip to content

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

@matteozambon89

Description

@matteozambon89

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions