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

11 lines
276 B
JavaScript
Raw Normal View History

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