diff --git a/packages/twenty-server/src/app.module.ts b/packages/twenty-server/src/app.module.ts index 726e6bd316d..671905d9d73 100644 --- a/packages/twenty-server/src/app.module.ts +++ b/packages/twenty-server/src/app.module.ts @@ -81,7 +81,7 @@ const MIGRATED_REST_METHODS = [ export class AppModule { private static getConditionalModules(): DynamicModule[] { const modules: DynamicModule[] = []; - const frontPath = join(__dirname, '..', 'front'); + const frontPath = join(__dirname, 'front'); // NestJS DevTools - can be useful for debugging and profiling /* if (process.env.NODE_ENV === NodeEnvironment.DEVELOPMENT) { diff --git a/packages/twenty-server/src/utils/generate-front-config.ts b/packages/twenty-server/src/utils/generate-front-config.ts index 6069fbbfe71..cb3348c1002 100644 --- a/packages/twenty-server/src/utils/generate-front-config.ts +++ b/packages/twenty-server/src/utils/generate-front-config.ts @@ -22,7 +22,7 @@ export function generateFrontConfig(): void { `; - const distPath = path.join(__dirname, '../..', 'front'); + const distPath = path.join(__dirname, '..', 'front'); const indexPath = path.join(distPath, 'index.html'); try {