Skip to content

Using configuration values in Adonis 5 #1275

Answered by thetutlage
zmaglica asked this question in Help
Discussion options

You must be logged in to vote

There is still the ConfigProvider (but yes not documented).

import Config from '@ioc:Adonis/Core/Config'

or you can also simply import the config files

import app from './relative/path/to/config/app'

The later one will give you intellisense support

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zmaglica
Comment options

Answer selected by zmaglica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants