Skip to content

Commit

Permalink
sample(@nestjs) fix paths join usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 1, 2018
1 parent 1f59a81 commit 2ea58ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/17-mvc-fastify/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { ApplicationModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule, new FastifyAdapter());
app.useStaticAssets({
root: join(__dirname, './../public'),
root: join(__dirname, '..', 'public'),
prefix: '/public/',
});
app.setViewEngine({
engine: {
handlebars: require('handlebars'),
},
templates: join(__dirname, './../views'),
templates: join(__dirname, '..', 'views'),
});
await app.listen(3000);
}
Expand Down

0 comments on commit 2ea58ac

Please sign in to comment.