Skip to content

Commit 669d6e9

Browse files
authored
fix: fix relative workdir path (#22)
1 parent 89ec735 commit 669d6e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
export const WORKDIR_PATH = process.env.FARM_WORKDIR ?? '/farm';
1+
import nodePath from 'node:path';
2+
3+
// TODO(DakEnviy): Rewrite work with paths
4+
export const WORKDIR_PATH = nodePath.resolve(process.env.FARM_WORKDIR ?? '/farm');
25
export const TEMP_PATH = 'farm-temp';

0 commit comments

Comments
 (0)