mirror of
https://github.com/cupcakearmy/morphus.git
synced 2025-12-08 23:55:00 +00:00
progress
This commit is contained in:
@@ -91,15 +91,15 @@ const config = convict({
|
||||
},
|
||||
|
||||
// Local storage
|
||||
assets: {
|
||||
localAssets: {
|
||||
doc: 'The path to the assets folder',
|
||||
format: String,
|
||||
default: './assets',
|
||||
env: 'ASSETS',
|
||||
env: 'LOCAL_ASSETS',
|
||||
},
|
||||
})
|
||||
|
||||
for (const file of ['morphus.yaml', 'morphus.yaml', 'morphus.json']) {
|
||||
for (const file of ['morphus.yaml', 'morphus.yaml']) {
|
||||
try {
|
||||
config.loadFile(file)
|
||||
break
|
||||
|
||||
@@ -20,7 +20,7 @@ export async function init() {
|
||||
if (!storage) {
|
||||
switch (Config.storage) {
|
||||
case StorageType.Local:
|
||||
storage = new Local(Config.assets)
|
||||
storage = new Local(Config.localAssets)
|
||||
break
|
||||
default:
|
||||
throw new Error(`Unknown storage type: ${Config.storage}`)
|
||||
|
||||
Reference in New Issue
Block a user