diff options
author | Christoph (Sheogorath) Kern | 2018-06-24 01:58:08 +0200 |
---|---|---|
committer | GitHub | 2018-06-24 01:58:08 +0200 |
commit | b8726bbe8da69a8562df2fe82d70f8238aed542f (patch) | |
tree | 251bf368b6248c21ae1708d429847918f6173345 /lib/config | |
parent | cfdfafdb79a5b6f7d5b193b05aad1a16c1900f8f (diff) | |
parent | 0ed4b50098b4329b1d91e519bbbbe4e14701f92f (diff) |
Merge pull request #855 from hackmdio/fix/constants
Move config out of statics path
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/default.js | 1 | ||||
-rw-r--r-- | lib/config/index.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index f88c17b3..2a91c852 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -45,6 +45,7 @@ module.exports = { errorPath: './public/views/error.ejs', prettyPath: './public/views/pretty.ejs', slidePath: './public/views/slide.ejs', + constantsPath: './public/js/lib/common/constant.ejs', uploadsPath: './public/uploads', // session sessionName: 'connect.sid', diff --git a/lib/config/index.js b/lib/config/index.js index b8bf64cc..79330443 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -173,6 +173,7 @@ config.hackmdPath = path.join(appRootPath, config.hackmdPath) config.errorPath = path.join(appRootPath, config.errorPath) config.prettyPath = path.join(appRootPath, config.prettyPath) config.slidePath = path.join(appRootPath, config.slidePath) +config.constantsPath = path.join(appRootPath, config.constantsPath) config.uploadsPath = path.join(appRootPath, config.uploadsPath) // make config readonly |