budibase/packages/server/src/utilities/budibaseDir.js

12 lines
306 B
JavaScript
Raw Normal View History

2020-05-11 16:42:42 +02:00
const { join } = require("path")
const { homedir, tmpdir } = require("os")
2020-05-14 16:12:30 +02:00
const env = require("../environment")
2020-05-11 16:42:42 +02:00
module.exports.budibaseAppsDir = function() {
2020-05-14 16:12:30 +02:00
return env.BUDIBASE_DIR || join(homedir(), ".budibase")
2020-05-11 16:42:42 +02:00
}
module.exports.budibaseTempDir = function() {
return join(tmpdir(), ".budibase")
}