Skip to content

Commit bc992c1

Browse files
committed
fix: support defining storage and database in config
1 parent aa13b69 commit bc992c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/server.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
267267
array: directory.array || 'files',
268268
object
269269
}
270+
271+
if (directory.storage)
272+
newObject.storage = directory.storage
273+
if (directory.database)
274+
newObject.database = directory.database
275+
if (directory.array)
276+
newObject.array = directory.array || 'files'
277+
270278
for (const key of Object.keys(directory.object)) {
271279
if (typeof directory.object[key] == 'string') {
272280

0 commit comments

Comments
 (0)