Adds proper safety for prod and added option for SSL
This commit is contained in:
parent
0962b609c4
commit
d67c4063e4
6 changed files with 50 additions and 33 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue