mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 05:54:43 -04:00
Added config property for locales
There's a new config property 'localesPath' - pointing to './locales' by default. The path resolution is similar to the docsPath, uploadsPath etc. Signed-off-by: Erik Michelson <erik@liltv.de>
This commit is contained in:
parent
760591b9b0
commit
7838f9b03a
4 changed files with 4 additions and 1 deletions
|
@ -48,6 +48,7 @@ module.exports = {
|
|||
defaultNotePath: './public/default.md',
|
||||
docsPath: './public/docs',
|
||||
uploadsPath: './public/uploads',
|
||||
localesPath: './locales',
|
||||
// session
|
||||
sessionName: 'connect.sid',
|
||||
sessionSecret: 'secret',
|
||||
|
|
|
@ -201,6 +201,7 @@ config.publicPath = path.resolve(appRootPath, config.publicPath)
|
|||
config.defaultNotePath = path.resolve(appRootPath, config.defaultNotePath)
|
||||
config.docsPath = path.resolve(appRootPath, config.docsPath)
|
||||
config.uploadsPath = path.resolve(appRootPath, config.uploadsPath)
|
||||
config.localesPath = path.resolve(appRootPath, config.localesPath)
|
||||
|
||||
// make config readonly
|
||||
config = deepFreeze(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue