From 89d166ece6efc5ae9bb5d7d1b17d2de96bf8a4f1 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Wed, 19 Nov 2025 19:16:46 +0100 Subject: [PATCH] fix(server): ssr front (#15934) --- packages/twenty-server/src/app.module.ts | 2 +- packages/twenty-server/src/utils/generate-front-config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {