We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f59a81 commit 2ea58acCopy full SHA for 2ea58ac
1 file changed
sample/17-mvc-fastify/src/main.ts
@@ -5,14 +5,14 @@ import { ApplicationModule } from './app.module';
5
async function bootstrap() {
6
const app = await NestFactory.create(ApplicationModule, new FastifyAdapter());
7
app.useStaticAssets({
8
- root: join(__dirname, './../public'),
+ root: join(__dirname, '..', 'public'),
9
prefix: '/public/',
10
});
11
app.setViewEngine({
12
engine: {
13
handlebars: require('handlebars'),
14
},
15
- templates: join(__dirname, './../views'),
+ templates: join(__dirname, '..', 'views'),
16
17
await app.listen(3000);
18
}
0 commit comments