Adds proper safety for prod and added option for SSL

This commit is contained in:
Michel 2024-11-07 21:38:48 +01:00
parent 0962b609c4
commit d67c4063e4
6 changed files with 50 additions and 33 deletions

View file

@ -10,9 +10,9 @@ const PUBLIC_FOLDER = Path.resolve(__dirname, 'public'),
CSS_FOLDER = Path.resolve(SOURCE_FOLDER, 'css'),
PHP_FOLDER = Path.resolve(SOURCE_FOLDER, 'php');
const PROD = false;
const PROD = process.env.PROD ?? false;
const INDEX_PATH = Path.resolve(PHP_FOLDER, PROD ? 'index.prod.php' : 'index.dev.php');
const INDEX_PATH = Path.resolve(PHP_FOLDER, 'index.php');
module.exports = {
plugins: [