diff options
author | 2024-02-11 19:15:20 +0530 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch) | |
tree | cab910ad5048eece2d229648f2c17000ac86a44d /start/env.ts | |
parent | updates (diff) | |
download | ferdium-server-8fec21d6bccfa778c14c1714d6444312e36fc3f1.tar.gz ferdium-server-8fec21d6bccfa778c14c1714d6444312e36fc3f1.tar.zst ferdium-server-8fec21d6bccfa778c14c1714d6444312e36fc3f1.zip |
Diffstat (limited to 'start/env.ts')
-rw-r--r-- | start/env.ts | 27 |
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 @@ | |||
14 | import { Env } from '@adonisjs/core/env'; | 14 | import { Env } from '@adonisjs/core/env'; |
15 | 15 | ||
16 | export default await Env.create(new URL('../', import.meta.url), { | 16 | export 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 | }); |