2020-10-09 11:00:57 +02:00
|
|
|
const { join } = require("./centralPath")
|
2021-05-06 20:27:24 +02:00
|
|
|
const { homedir } = require("os")
|
2020-05-14 16:12:30 +02:00
|
|
|
const env = require("../environment")
|
2021-05-06 20:27:24 +02:00
|
|
|
const { budibaseTempDir } = require("@budibase/auth").objectStore
|
2020-05-11 16:42:42 +02:00
|
|
|
|
2021-05-03 09:31:09 +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
|
|
|
}
|
|
|
|
|
2021-05-06 20:27:24 +02:00
|
|
|
module.exports.budibaseTempDir = budibaseTempDir
|