We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e39c9d9 commit 5327979Copy full SHA for 5327979
1 file changed
sample/15-mvc/src/main.ts
@@ -5,8 +5,8 @@ import { ApplicationModule } from './app.module';
5
async function bootstrap() {
6
const app = await NestFactory.create(ApplicationModule);
7
8
- app.useStaticAssets(join(__dirname + './../public'));
9
- app.setBaseViewsDir(join(__dirname + './../views'));
+ app.useStaticAssets(join(__dirname, '..', 'public'));
+ app.setBaseViewsDir(join(__dirname, '..', 'views'));
10
app.setViewEngine('hbs');
11
12
await app.listen(3000);
0 commit comments