From 6bf94ff6451fdbcfa1c7789bf4fb5301ce15224e Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 29 May 2024 16:25:15 -0500 Subject: [PATCH] remove redundant path evaluation --- apps/server/src/setup/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/server/src/setup/index.ts b/apps/server/src/setup/index.ts index 636d36a838..ce87e3081e 100644 --- a/apps/server/src/setup/index.ts +++ b/apps/server/src/setup/index.ts @@ -59,17 +59,13 @@ const currentDir = dirname(__dirname); export const srcDirectory = isProduction ? currentDir : path.join(currentDir, '../'); // resolve path to external -const productionPath = path.join(srcDirectory, '../../resources/extraResources/client'); +const productionPath = path.join(srcDirectory, 'client/'); const devPath = path.join(srcDirectory, '../../client/build/'); -const dockerPath = path.join(srcDirectory, 'client/'); export const resolvedPath = (): string => { if (isTest) { return devPath; } - if (isDocker) { - return dockerPath; - } if (isProduction) { return productionPath; }