comparison benchmark/bun-http-framework-benchmark/dev/adonis/env.ts @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents a8976a008a9d
children
comparison
equal deleted inserted replaced
182:d6ab5921fedc 185:dfdd66825396
1 /*
2 |--------------------------------------------------------------------------
3 | Validating Environment Variables
4 |--------------------------------------------------------------------------
5 |
6 | In this file we define the rules for validating environment variables.
7 | By performing validation we ensure that your application is running in
8 | a stable environment with correct configuration values.
9 |
10 | This file is read automatically by the framework during the boot lifecycle
11 | and hence do not rename or move this file to a different location.
12 |
13 */
14
15 import Env from '@ioc:Adonis/Core/Env'
16
17 export default Env.rules({
18 HOST: Env.schema.string({ format: 'host' }),
19 PORT: Env.schema.number(),
20 APP_KEY: Env.schema.string(),
21 APP_NAME: Env.schema.string(),
22 DRIVE_DISK: Env.schema.enum(['local'] as const),
23 NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const),
24 })