Skip to content

Commit 2ea58ac

Browse files
sample(@nestjs) fix paths join usage
1 parent 1f59a81 commit 2ea58ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sample/17-mvc-fastify/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { ApplicationModule } from './app.module';
55
async function bootstrap() {
66
const app = await NestFactory.create(ApplicationModule, new FastifyAdapter());
77
app.useStaticAssets({
8-
root: join(__dirname, './../public'),
8+
root: join(__dirname, '..', 'public'),
99
prefix: '/public/',
1010
});
1111
app.setViewEngine({
1212
engine: {
1313
handlebars: require('handlebars'),
1414
},
15-
templates: join(__dirname, './../views'),
15+
templates: join(__dirname, '..', 'views'),
1616
});
1717
await app.listen(3000);
1818
}

0 commit comments

Comments
 (0)