Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit f38b49a

Browse files
committed
refactor: update stubs to validate drive env variables
1 parent a729a7c commit f38b49a

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/schematics/packages.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export const packages: {
1616
} = {
1717
web: {
1818
'@adonisjs/core': {
19-
version: '^5.1.0',
19+
version: '^5.3.0',
2020
},
2121
'@adonisjs/repl': {
22-
version: '^3.0.0',
22+
version: '^3.1.0',
2323
},
2424
'@adonisjs/session': {
2525
version: '^6.0.0',
@@ -33,15 +33,15 @@ export const packages: {
3333
},
3434
api: {
3535
'@adonisjs/core': {
36-
version: '^5.1.0',
36+
version: '^5.3.0',
3737
},
3838
'@adonisjs/repl': {
39-
version: '^3.0.0',
39+
version: '^3.1.0',
4040
},
4141
},
4242
slim: {
4343
'@adonisjs/core': {
44-
version: '^5.1.0',
44+
version: '^5.3.0',
4545
},
4646
},
4747
}

templates/api/env.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export default Env.rules({
1919
PORT: Env.schema.number(),
2020
APP_KEY: Env.schema.string(),
2121
APP_NAME: Env.schema.string(),
22+
DRIVE_DISK: Env.schema.enum(['local'] as const),
2223
NODE_ENV: Env.schema.enum(['development', 'production', 'testing'] as const),
2324
})

templates/slim/env.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export default Env.rules({
1919
PORT: Env.schema.number(),
2020
APP_KEY: Env.schema.string(),
2121
APP_NAME: Env.schema.string(),
22+
DRIVE_DISK: Env.schema.enum(['local'] as const),
2223
NODE_ENV: Env.schema.enum(['development', 'production', 'testing'] as const),
2324
})

templates/web/env.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ export default Env.rules({
2121
APP_NAME: Env.schema.string(),
2222
CACHE_VIEWS: Env.schema.boolean(),
2323
SESSION_DRIVER: Env.schema.string(),
24+
DRIVE_DISK: Env.schema.enum(['local'] as const),
2425
NODE_ENV: Env.schema.enum(['development', 'production', 'testing'] as const),
2526
})

0 commit comments

Comments
 (0)