Skip to content

Commit c047ad8

Browse files
author
PCOffline
committed
chore: update config to match readme
1 parent 6950e94 commit c047ad8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const { Schema } = mongoose;
55
export default {
66
noPrompt: false, // Don't prompt before deleting
77
preferPath: true, // When both path and data are provided, ignore the data and only use the path. If false, only the data will be used in such case.
8-
logLevel: 'info', // 'debug' | 'info' | 'warn' | 'error' | 'silent'
9-
mongoUri: 'mongodb://localhost:27017/my-database',
8+
logLevel: 'debug', // 'debug' | 'info' | 'warn' | 'error' | 'silent'
9+
mongoUri: 'mongodb://localhost:27017/my-database', // Can also be retrieved from environment variable: MONGO_URI, MONGODB_URI, DB_URI, DATABASE_URI or mongoUri
10+
sensitiveDebugLog: false, // Log information that is considered sensitive (such as the MongoDB URI) in debug mode.
1011
collections: {
1112
collectionName: {
1213
schema: new Schema({
@@ -23,7 +24,7 @@ export default {
2324
fieldName: 'value',
2425
},
2526
],
26-
path: 'path/to/file.json', // alternative to 'data', can be either json or js with default export
27+
path: 'path/to/file.json', // alternative to 'data', can be either .json, .js or .mjs with default export
2728
},
2829
},
2930
};

0 commit comments

Comments
 (0)