2020-03-16 12:21:34 +01:00
|
|
|
import path from 'path';
|
|
|
|
import {fileURLToPath} from 'url';
|
2020-03-16 11:12:49 +01:00
|
|
|
const __dirname = fileURLToPath(import.meta.url);
|
2020-03-17 14:51:25 +01:00
|
|
|
|
|
|
|
export const PROJECT_ROOT = process.cwd();
|
|
|
|
|
2020-03-16 08:24:10 +01:00
|
|
|
/**
|
|
|
|
* A path string relative to the project folder.
|
|
|
|
* @typedef {String} IMAGES_FOLDER
|
|
|
|
*/
|
2020-03-17 14:51:25 +01:00
|
|
|
export const IMAGES_FOLDER = path.join(PROJECT_ROOT, 'public', 'images');
|
|
|
|
|
|
|
|
export const MAX_SESSION_TIME = 60 * 30;
|