Added static serving and concurrently for dev

This commit is contained in:
2021-07-30 17:36:58 -04:00
parent 1a9afdc2b8
commit e5ef4d8847
3 changed files with 463 additions and 307 deletions

View File

@@ -1,10 +1,16 @@
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
imports: [],
imports: [
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', 'client'),
}),
],
controllers: [AppController],
providers: [AppService],
})