We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1734977 commit bfccce2Copy full SHA for bfccce2
2 files changed
admin/src/state/actions/Config.js
@@ -84,7 +84,7 @@ export function setLoadingState(value) {
84
export function getAppEnv(toggleNotification) {
85
return async function(dispatch) {
86
try {
87
- const env = await request('/config-sync/app-env', {
+ const { env } = await request('/config-sync/app-env', {
88
method: 'GET',
89
});
90
dispatch(setAppEnvInState(env));
server/controllers/config.js
@@ -88,5 +88,7 @@ module.exports = {
* Get the current Strapi env.
* @returns {string} The current Strapi environment.
*/
91
- getAppEnv: async () => strapi.server.app.env,
+ getAppEnv: async () => {
92
+ return { env: strapi.server.app.env };
93
+ },
94
};
0 commit comments