{"action":"closed","issue":{"url":"https://api.github.com/repos/keystonejs/keystone-email/issues/35","repository_url":"https://api.github.com/repos/keystonejs/keystone-email","labels_url":"https://api.github.com/repos/keystonejs/keystone-email/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone-email/issues/35/comments","events_url":"https://api.github.com/repos/keystonejs/keystone-email/issues/35/events","html_url":"https://github.com/keystonejs/keystone-email/issues/35","id":313590000,"number":35,"title":"Issue with \"Default locals have been removed\"","user":{"login":"max8hine","id":15165714,"avatar_url":"https://avatars2.githubusercontent.com/u/15165714?v=4","gravatar_id":"","url":"https://api.github.com/users/max8hine","html_url":"https://github.com/max8hine","followers_url":"https://api.github.com/users/max8hine/followers","following_url":"https://api.github.com/users/max8hine/following{/other_user}","gists_url":"https://api.github.com/users/max8hine/gists{/gist_id}","starred_url":"https://api.github.com/users/max8hine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max8hine/subscriptions","organizations_url":"https://api.github.com/users/max8hine/orgs","repos_url":"https://api.github.com/users/max8hine/repos","events_url":"https://api.github.com/users/max8hine/events{/privacy}","received_events_url":"https://api.github.com/users/max8hine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-12T06:14:54Z","updated_at":"2018-04-13T04:09:03Z","closed_at":"2018-04-13T04:09:03Z","author_association":"NONE","body":"I've been debugging this for days.🧐\r\n\r\nI use `express-react-views` as the site's view, as well as the email's view\r\n\r\nkeystone-email removed the default locals, that causing the object of `app.setting` is removed by from  Email.prototype.render(options, callback) process, and `express-react-views` break, b/c `env` is undefined.\r\n\r\nIs there a commonplace that could set the `email locals` in the build time?\r\n`keystone.set('email locals')` isn't recognized in keystone4 by default\r\n\r\nand How to get the app.setting object?  `keystone.get('???')` \r\nMy current way is `keystone.get().app.settings`\r\n\r\n``` js\r\n// app.setting object I am looking for\r\n{ 'x-powered-by': true,\r\n  etag: 'weak',\r\n  'etag fn': [Function: generateETag],\r\n  env: 'development',\r\n  'query parser': 'extended',\r\n  'query parser fn': [Function: parseExtendedQueryString],\r\n  'subdomain offset': 2,\r\n  'trust proxy': false,\r\n  'trust proxy fn': [Function: trustNone],\r\n  view: [Function: View],\r\n  views: '/Users/maxshine/Documents/workspace/keystone-boilerplate/views',\r\n  'jsonp callback name': 'callback',\r\n  'view engine': 'jsx' }\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"max8hine"}}