mirror of https://github.com/status-im/codimd.git
Use OS based tmp dir
We should use the official OS temp directory instead of an own one, to not run into conflicts. Also various dependencies already use the OS temp directory, which makes it pointless to use a different for our internal purposes then. This commit provides the changes needed to use the OS tmp directory by default. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
637f955bdd
commit
59b3885dda
|
@ -1,5 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const os = require('os')
|
||||
|
||||
module.exports = {
|
||||
domain: '',
|
||||
urlPath: '',
|
||||
|
@ -39,7 +41,7 @@ module.exports = {
|
|||
dhParamPath: '',
|
||||
// other path
|
||||
viewPath: './public/views',
|
||||
tmpPath: './tmp',
|
||||
tmpPath: os.tmpdir(),
|
||||
defaultNotePath: './public/default.md',
|
||||
docsPath: './public/docs',
|
||||
uploadsPath: './public/uploads',
|
||||
|
|
Loading…
Reference in New Issue