Browse Source

Merge remote-tracking branch 'upstream/main' into test/client-component

tumao 4 years ago
parent
commit
4f3a44ea8e
2 changed files with 4 additions and 4 deletions
  1. 2 2
      server/package.json
  2. 2 2
      server/src/app.module.ts

+ 2 - 2
server/package.json

@@ -12,7 +12,7 @@
     "start": "nest start",
     "start:dev": "nest start --watch",
     "start:debug": "nest start --debug --watch",
-    "start:prod": "node dist/main",
+    "start:prod": "node dist/src/main",
     "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
     "test": "jest",
     "test:watch": "jest --watch",
@@ -87,4 +87,4 @@
     "coverageDirectory": "../coverage",
     "testEnvironment": "node"
   }
-}
+}

+ 2 - 2
server/src/app.module.ts

@@ -18,7 +18,7 @@ import { LoggingInterceptor } from './interceptors/index';
 @Module({
   imports: [
     ServeStaticModule.forRoot({
-      rootPath: join(__dirname, '..', 'build'),
+      rootPath: join(__dirname, '../../', 'build'),
       // renderPath: '/', // only root render static html
     }),
     MilvusModule,
@@ -48,4 +48,4 @@ import { LoggingInterceptor } from './interceptors/index';
     UsersService,
   ],
 })
-export class AppModule { }
+export class AppModule {}