From 0d32059381a9ab81797f9142064dc48e51a21608 Mon Sep 17 00:00:00 2001 From: Alex Crome Date: Sun, 14 May 2023 12:32:23 +0100 Subject: [PATCH] Tweak environment detection recommendation Signed-off-by: Alex Crome --- docs/auth/microsoft/azure-easyauth.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/auth/microsoft/azure-easyauth.md b/docs/auth/microsoft/azure-easyauth.md index 0e20c543d1..2c4e369f6c 100644 --- a/docs/auth/microsoft/azure-easyauth.md +++ b/docs/auth/microsoft/azure-easyauth.md @@ -80,7 +80,8 @@ const app = createApp({ /* highlight-add-start */ components: { SignInPage: props => { - if (process.env.NODE_ENV === 'development') { + const configApi = useApi(configApiRef); + if (configApi.getString('auth.environment') === 'development') return ; } return (