From af089ba55b8e8128571baf2d98450d2228bd39c4 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 28 Aug 2024 02:34:03 +0200 Subject: [PATCH] [docs] Fix use of process.env.DEPLOY_ENV --- docs/src/modules/components/AppLayoutDocsFooter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/modules/components/AppLayoutDocsFooter.js b/docs/src/modules/components/AppLayoutDocsFooter.js index b718f527b0cf26..0fbe5d6e73a51f 100644 --- a/docs/src/modules/components/AppLayoutDocsFooter.js +++ b/docs/src/modules/components/AppLayoutDocsFooter.js @@ -81,7 +81,7 @@ function orderedPages(pages, current = []) { } async function postFeedback(data) { - const env = window.location.host.includes('mui.com') ? 'prod' : 'dev'; + const env = process.env.DEPLOY_ENV === 'production' ? 'prod' : 'dev'; try { const response = await fetch(`${process.env.FEEDBACK_URL}/${env}/feedback`, { method: 'POST',