The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(server): ssr front (#15934)
Paul Rastoin89d166ece6ef
diff --git a/packages/twenty-server/src/app.module.ts b/packages/twenty-server/src/app.module.tsindex 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.tsindex 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 {</script><!-- END: Twenty Config -->`;- const distPath = path.join(__dirname, '../..', 'front');+ const distPath = path.join(__dirname, '..', 'front');const indexPath = path.join(distPath, 'index.html');try {