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',