Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,10 @@ function fastifyView (fastify, opts, next) {
templates: options.templates ? options.templates : lru
})

const config = Object.assign({ views: templatesDir }, options)
const config = Object.assign({
cache: prod,
views: templatesDir
}, options)

data = Object.assign({}, defaultCtx, this.locals, data)
// Append view extension (Eta will append '.eta' by default,
Expand Down