Skip to content

Commit

Permalink
Merge pull request #1019 from cpvalente/cleanup-server-setup
Browse files Browse the repository at this point in the history
remove redundant path evaluation
  • Loading branch information
jwetzell authored May 30, 2024
2 parents 686c610 + 6bf94ff commit 8d526c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/server/src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d526c7

Please sign in to comment.