Using configuration values in Adonis 5 #1275
-
Hi. How can I use custom configuration values that are placed inside config folder? In Adonis v4 there was a Config Provider and I can't find anything similar in adonis v5. |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Jul 20, 2020
Replies: 1 comment 1 reply
-
There is still the 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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zmaglica
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is still the
ConfigProvider
(but yes not documented).or you can also simply import the config files
The later one will give you intellisense support