Skip to content

Commit 5327979

Browse files
authored
Fix path.join arguments seperation
1 parent e39c9d9 commit 5327979

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sample/15-mvc/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { ApplicationModule } from './app.module';
55
async function bootstrap() {
66
const app = await NestFactory.create(ApplicationModule);
77

8-
app.useStaticAssets(join(__dirname + './../public'));
9-
app.setBaseViewsDir(join(__dirname + './../views'));
8+
app.useStaticAssets(join(__dirname, '..', 'public'));
9+
app.setBaseViewsDir(join(__dirname, '..', 'views'));
1010
app.setViewEngine('hbs');
1111

1212
await app.listen(3000);

0 commit comments

Comments
 (0)