Edge config and env globals

articles/edge.jpeg

Added config() and env() globals

Since @adonisjs/[email protected] you can now use config() and env() global helpers

<p>
  Get app key from config/app.ts:appKey: {{ config('app.appKey') }}
</p>
<p>
  Get NODE_ENV environment variable: {{ env('NODE_ENV') }}
</p>

Small addition to make life little bit easier and there’s no more need to make custom global methods for those helpers

The Latest