Hello everyone,
I already read doc about env in this link Configurations - Strapi Developer Documentation
but I couldn’t figure it out how to use env in controller file.
In my code, I tried like this but it didn’t work.
As said @lolafkok, you can’t use the env() function in a controller. It only works for configurations file
You have to use the process.env object in order to retrieve your environment variable which are in the .envfile