diff --git a/contracts/drive.ts b/contracts/drive.ts index 108101c..2d64030 100644 --- a/contracts/drive.ts +++ b/contracts/drive.ts @@ -1,10 +1,3 @@ -/** - * Contract source: https://git.io/JBt3I - * - * Feel free to let us know via PR, if you find something broken in this contract - * file. - */ - declare module '@ioc:Adonis/Core/Drive' { interface DisksList { local: { diff --git a/env.ts b/env.ts index 177883b..81eb63e 100644 --- a/env.ts +++ b/env.ts @@ -20,7 +20,7 @@ export default Env.rules({ APP_KEY: Env.schema.string(), APP_NAME: Env.schema.string(), NODE_ENV: Env.schema.enum(['development', 'production', 'testing'] as const), - DRIVE_DISK: Env.schema.string(), + DRIVE_DISK: Env.schema.enum(['local'] as const), PG_HOST: Env.schema.string({ format: 'host' }), PG_PORT: Env.schema.number(), PG_USER: Env.schema.string(), diff --git a/package.json b/package.json index 9b40b94..e6d9c42 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "dependencies": { "@adonisjs/auth": "^8.0.9", "@adonisjs/core": "^5.3.2", + "@adonisjs/drive": "^2.0.6", "@adonisjs/lucid": "^15.0.3", "@adonisjs/redis": "^7.0.9", "@adonisjs/repl": "^3.1.6",