0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/server/web
Rishabh Garg 876e310aea
Updated check for members-ssr use at theme layer (#10693)
no issue

### Context

As part of updating the theme layer to use members-ssr [here](f9899cb8c4), we introduced a case where if `enableDeveloperExperiments` is not switched on, the whole theme loading will crash due to unavailability of `ssr` property on members service [here](https://github.com/TryGhost/Ghost/blob/master/core/server/services/members/index.js#L12). Since we switch on `enableDeveloperExperiments` by default on master now, the issue won't be reproducible locally until explicitly switched off. 

This PR includes a patch fix which adds dummy `ssr` object to members service `api` object and members middleware check on APIs to ensure no crash in case developer flags is not switched on. 

Longer term it will be definitely useful to upgrade the dummy `api` object to trigger on member labs than the developer flag.
2019-04-17 17:38:12 +05:30
..
admin Optimised web/ debug logs 2018-10-04 17:43:08 +02:00
api Added Admin API for deleting members (#10673) 2019-04-13 10:38:56 +05:30
shared 🐛 Fixed admin error page on startup 2019-04-01 15:06:00 +08:00
site Updated check for members-ssr use at theme layer (#10693) 2019-04-17 17:38:12 +05:30
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
parent-app.js Refactored members auth flow with dynamic settings 2019-02-26 15:43:36 +07:00