From d949f29e7c843639dfe0de54dcee8fa489da1fd0 Mon Sep 17 00:00:00 2001 From: gsmithun4 Date: Fri, 9 Aug 2024 22:53:23 +0530 Subject: [PATCH] fix --- server/src/app.module.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/src/app.module.ts b/server/src/app.module.ts index 6bfd7a9141..98e0af7460 100644 --- a/server/src/app.module.ts +++ b/server/src/app.module.ts @@ -110,16 +110,6 @@ const imports = [ StaticFileServerModule ]; -if (process.env.SERVE_CLIENT !== 'false' && process.env.NODE_ENV === 'production') { - imports.unshift( - ServeStaticModule.forRoot({ - // Have to remove trailing slash of SUB_PATH. - serveRoot: process.env.SUB_PATH === undefined ? '' : process.env.SUB_PATH.replace(/\/$/, ''), - rootPath: join(__dirname, '../../../', 'frontend/build'), - }) - ); -} - if (process.env.APM_VENDOR == 'sentry') { imports.unshift( SentryModule.forRoot({