move storage data directory to root

This commit is contained in:
Philipinho
2024-06-27 15:07:48 +01:00
parent aea37eecda
commit e73293856b
7 changed files with 20 additions and 7 deletions

View File

@ -13,6 +13,7 @@ import {
import { LocalDriver, S3Driver } from '../drivers';
import * as process from 'node:process';
import { LOCAL_STORAGE_PATH } from '../../../common/helpers';
import path from 'path';
function createStorageDriver(disk: StorageConfig): StorageDriver {
switch (disk.driver) {
@ -35,7 +36,7 @@ export const storageDriverConfigProvider = {
return {
driver,
config: {
storagePath: process.cwd() + '/' + LOCAL_STORAGE_PATH,
storagePath: LOCAL_STORAGE_PATH,
},
};