mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-20 03:53:31 +02:00
feat: Serve frontend static files from backend
This commit is contained in:
@@ -4,9 +4,18 @@ import { AppService } from './app.service';
|
||||
import { DatabaseModule } from './database/database.module';
|
||||
import { UserModule } from './user/user.module';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { ServeStaticModule } from '@nestjs/serve-static';
|
||||
import { join } from 'path';
|
||||
|
||||
@Module({
|
||||
imports: [DatabaseModule, UserModule, AuthModule],
|
||||
imports: [
|
||||
DatabaseModule,
|
||||
UserModule,
|
||||
AuthModule,
|
||||
ServeStaticModule.forRoot({
|
||||
rootPath: join(__dirname, '..', '..', 'dist'),
|
||||
}),
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user