mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #7102 from overleaf/msm-check-entry-point-dir-settings
[settings] add check for `process.argv[1]` GitOrigin-RevId: 24e9e02dc840e9c4206d36b814150b092247d5d9
This commit is contained in:
parent
f5654e94c6
commit
7e41fbf81b
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ const Path = require('path')
|
||||||
const { merge } = require('./merge')
|
const { merge } = require('./merge')
|
||||||
|
|
||||||
const CWD = process.cwd()
|
const CWD = process.cwd()
|
||||||
const ENTRY_POINT_DIR = Path.dirname(process.argv[1])
|
const ENTRY_POINT_DIR = process.argv[1]
|
||||||
|
? Path.dirname(process.argv[1])
|
||||||
|
: undefined
|
||||||
const NODE_ENV = (process.env.NODE_ENV || 'development').toLowerCase()
|
const NODE_ENV = (process.env.NODE_ENV || 'development').toLowerCase()
|
||||||
const SHARELATEX_CONFIG = process.env.SHARELATEX_CONFIG
|
const SHARELATEX_CONFIG = process.env.SHARELATEX_CONFIG
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue