17 lines
356 B
JavaScript
17 lines
356 B
JavaScript
let config;
|
|
try {
|
|
config = require('./config');
|
|
} catch (e) {
|
|
let fs = require('fs');
|
|
let { join } = require('path');
|
|
let root = fs.existsSync('/data') ? '/data' : __dirname;
|
|
|
|
config = {
|
|
mode: 'development',
|
|
port: 5006,
|
|
serverFiles: join(root, 'server-files'),
|
|
userFiles: join(root, 'user-files')
|
|
};
|
|
}
|
|
|
|
module.exports = config;
|