This commit is contained in:
2026-07-06 07:30:48 +07:00
parent 647e13e988
commit dbd98dff37
12 changed files with 10559 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
// Resolve the storage directory (default to ../storage relative to the compiled or source path)
const storageDir = process.env.STORAGE_DIR || join(__dirname, '..', '..', 'storage');
@Module({
imports: [
ServeStaticModule.forRoot({
rootPath: storageDir,
serveRoot: '/',
}),
],
})
export class AppModule { }