mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 14:22:36 +10:00
move storage data directory to root
This commit is contained in:
@ -1,2 +1,11 @@
|
||||
import * as path from 'path';
|
||||
|
||||
export const APP_DATA_PATH = 'data';
|
||||
export const LOCAL_STORAGE_PATH = `${APP_DATA_PATH}/storage`;
|
||||
const LOCAL_STORAGE_DIR = `${APP_DATA_PATH}/storage`;
|
||||
|
||||
export const LOCAL_STORAGE_PATH = path.resolve(
|
||||
process.cwd(),
|
||||
'..',
|
||||
'..',
|
||||
LOCAL_STORAGE_DIR,
|
||||
);
|
||||
|
||||
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user