This commit is contained in:
Rutra
2026-05-13 11:50:22 +02:00
commit 2068229f89
128 changed files with 9215 additions and 0 deletions

19
start/env.js Normal file
View File

@@ -0,0 +1,19 @@
import { Env } from '@adonisjs/core/env';
export default await Env.create(new URL('../', import.meta.url), {
NODE_ENV: Env.schema.enum(['development', 'production', 'test']),
PORT: Env.schema.number(),
HOST: Env.schema.string({ format: 'host' }),
LOG_LEVEL: Env.schema.string(),
APP_KEY: Env.schema.secret(),
APP_URL: Env.schema.string({ format: 'url', tld: false }),
SESSION_DRIVER: Env.schema.enum(['cookie', 'memory', 'database']),
DB_HOST: Env.schema.string({ format: 'host' }),
DB_PORT: Env.schema.number(),
DB_USER: Env.schema.string(),
DB_PASSWORD: Env.schema.string(),
DB_DATABASE: Env.schema.string(),
ADMIN_FULL_NAME: Env.schema.string(),
ADMIN_EMAIL: Env.schema.string(),
ADMIN_PASSWORD: Env.schema.secret(),
});
//# sourceMappingURL=env.js.map