@syngrisi/syngrisi
Version:
Syngrisi - Visual Testing Tool
18 lines (15 loc) • 569 B
JavaScript
const fs = require('fs');
require('dotenv')
.config();
const bsPath = process.env.SYNGRISI_IMAGES_PATH || './.snapshots-images/';
if (!fs.existsSync(bsPath)) {
fs.mkdirSync(bsPath, { recursive: true });
}
exports.config = {
defaultImagesPath: bsPath,
connectionString: process.env.SYNGRISI_DB_URI || process.env.VRS_CONN_STRING || 'mongodb://127.0.0.1:27017/SyngrisiDb',
port: process.env.SYNGRISI_APP_PORT || 3000,
backupsFolder: './backups',
enableHttpLogger: process.env.SYNGRISI_HTTP_LOG,
httpLoggerFilePath: './logs/http.log'
};