1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-25 17:50:05 +00:00

fix: use env if provided for desktop mode

This commit is contained in:
Saad Jutt
2021-12-15 18:24:04 +05:00
parent e11a4b66e7
commit d19ce253b4
6 changed files with 22 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
import path from 'path'
import { getRealPath } from '@sasjs/utils'
export const apiRoot = path.join(__dirname, '..', '..')
export const codebaseRoot = path.join(apiRoot, '..')
@@ -12,8 +11,7 @@ export const sysInitCompiledPath = path.join(
export const getWebBuildFolderPath = () =>
path.join(codebaseRoot, 'web', 'build')
export const getTmpFolderPath = () =>
process.driveLoc ?? getRealPath(path.join(process.cwd(), 'tmp'))
export const getTmpFolderPath = () => process.driveLoc
export const getTmpFilesFolderPath = () =>
path.join(getTmpFolderPath(), 'files')