This commit is contained in:
dlandy
2026-03-30 10:08:59 +08:00
parent b627f8c020
commit 19c27dd7f8
9 changed files with 6 additions and 1455 deletions

View File

@@ -51,7 +51,7 @@ async function bootstrap() {
const document = SwaggerModule.createDocument(app, swaggerConfig);
SwaggerModule.setup('api/docs', app, document);
const clientDistPath = process.env.CLIENT_DIST_PATH ?? join(__dirname, '..', 'public');
const clientDistPath = process.env.CLIENT_DIST_PATH ?? join(process.cwd(), 'public');
if (existsSync(clientDistPath)) {
app.useStaticAssets(clientDistPath);