mirror of
https://github.com/strapi/strapi.git
synced 2025-11-14 17:19:01 +00:00
Fix default config usage ejs
This commit is contained in:
parent
93ee900a14
commit
fcf6e76804
@ -33,13 +33,13 @@ module.exports = function(strapi) {
|
|||||||
* Initialize the hook
|
* Initialize the hook
|
||||||
*/
|
*/
|
||||||
|
|
||||||
initialize: () => {
|
initialize () {
|
||||||
// Force cache mode in production
|
// Force cache mode in production
|
||||||
if (strapi.config.environment === 'production') {
|
if (strapi.config.environment === 'production') {
|
||||||
strapi.config.hook.settings.ejs.cache = true;
|
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);
|
strapi.app.context.render = co.wrap(strapi.app.context.render);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user