diff --git a/packages/strapi-hook-ejs/lib/index.js b/packages/strapi-hook-ejs/lib/index.js index a6295c8323..13586e6771 100644 --- a/packages/strapi-hook-ejs/lib/index.js +++ b/packages/strapi-hook-ejs/lib/index.js @@ -33,13 +33,13 @@ module.exports = function(strapi) { * Initialize the hook */ - initialize: () => { + initialize () { // Force cache mode in production if (strapi.config.environment === 'production') { strapi.config.hook.settings.ejs.cache = true; } - render(strapi.app, strapi.config.hook.settings.ejs); + render(strapi.app, Object.assign(this.defaults, strapi.config.hook.settings.ejs)); strapi.app.context.render = co.wrap(strapi.app.context.render); },