aboutsummaryrefslogtreecommitdiffstats
path: root/start/env.ts
diff options
context:
space:
mode:
Diffstat (limited to 'start/env.ts')
-rw-r--r--start/env.ts27
1 files changed, 23 insertions, 4 deletions
diff --git a/start/env.ts b/start/env.ts
index c51a472..5b40fd8 100644
--- a/start/env.ts
+++ b/start/env.ts
@@ -14,11 +14,30 @@
14import { Env } from '@adonisjs/core/env'; 14import { Env } from '@adonisjs/core/env';
15 15
16export default await Env.create(new URL('../', import.meta.url), { 16export default await Env.create(new URL('../', import.meta.url), {
17 HOST: Env.schema.string({ format: 'host' }), 17 NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const),
18 PORT: Env.schema.number(), 18 PORT: Env.schema.number(),
19
20 APP_KEY: Env.schema.string(), 19 APP_KEY: Env.schema.string(),
21 APP_NAME: Env.schema.string(), 20 HOST: Env.schema.string({ format: 'host' }),
21 LOG_LEVEL: Env.schema.string(),
22 22
23 NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const), 23 /*
24 |----------------------------------------------------------
25 | Variables for configuring session package
26 |----------------------------------------------------------
27 */
28 SESSION_DRIVER: Env.schema.enum(['cookie', 'memory'] as const),
29
30 /*
31 |----------------------------------------------------------
32 | Variables for configuring the mail package
33 |----------------------------------------------------------
34 */
35 // SMTP_HOST: Env.schema.string(),
36 // SMTP_PORT: Env.schema.string(),
37 // SES_ACCESS_KEY: Env.schema.string(),
38 // SES_ACCESS_SECRET: Env.schema.string(),
39 // SES_REGION: Env.schema.string(),
40 // MAILGUN_API_KEY: Env.schema.string(),
41 // MAILGUN_DOMAIN: Env.schema.string(),
42 // SPARKPOST_API_KEY: Env.schema.string(),
24}); 43});