Enviroinment variables
Environment variables in AdonisJS
Environment variables are available in the .env
file and the env.ts
file that will validate them.
An error will be thrown if the environment variable is not well validated.
You can access environment variables in your code using the env.ts
class.
import env from "#start/env";
env.get('APP_NAME')