mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: serve frontend from api container in prod build
This commit is contained in:
parent
49bff95ea5
commit
ad98ce4e88
5 changed files with 24 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { Module } from "@nestjs/common";
|
||||
import { ConfigModule } from "@nestjs/config";
|
||||
import { ScheduleModule } from "@nestjs/schedule";
|
||||
import { ServeStaticModule } from "@nestjs/serve-static";
|
||||
import { join } from "path";
|
||||
import { AuthModule } from "./auth/auth.module";
|
||||
import { DatabaseModule } from "./database/database.module";
|
||||
import { ListensModule } from "./listens/listens.module";
|
||||
|
|
@ -14,6 +16,10 @@ import { UsersModule } from "./users/users.module";
|
|||
ConfigModule.forRoot({ isGlobal: true }),
|
||||
ScheduleModule.forRoot(),
|
||||
DatabaseModule,
|
||||
ServeStaticModule.forRoot({
|
||||
rootPath: join(__dirname, "..", "static"),
|
||||
exclude: ["/api*"],
|
||||
}),
|
||||
AuthModule,
|
||||
UsersModule,
|
||||
SourcesModule,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue