Skip to content

Commit 93c34e6

Browse files
committed
fix: move priority of WORKSPACE_DIR env var
Signed-off-by: tylerslaton <[email protected]>
1 parent 9c6dd86 commit 93c34e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/app.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export const startAppServer = ({dev, hostname, port, dir}) => {
7272
};
7373

7474
const mount = async (file, tool, args, scriptWorkspace, socket, threadID, gptscript) => {
75-
// The environment variables that are set at an app level.
76-
const WORKSPACE_DIR = process.env.GPTSCRIPT_WORKSPACE_DIR ?? process.env.WORKSPACE_DIR;
75+
const WORKSPACE_DIR = process.env.WORKSPACE_DIR ?? process.env.GPTSCRIPT_WORKSPACE_DIR;
7776
const THREADS_DIR = process.env.THREADS_DIR ?? path.join(WORKSPACE_DIR, "threads");
7877

7978
const opts = {

0 commit comments

Comments
 (0)