Created
March 26, 2022 15:37
-
-
Save bussiere/c1ed49fdb9edb9eda64eebb5b9052878 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { ServeStaticModule } from '@nestjs/serve-static'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { join } from 'path'; | |
// we serve the static content from the html folder | |
@Module({ | |
imports: [ | |
ServeStaticModule.forRoot({ | |
rootPath: join(__dirname, '..', 'html'), | |
}) | |
], | |
controllers: [AppController], | |
providers: [AppService], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment