Skip to content

Commit

Permalink
[docs-infra] Fix use of process.env.DEPLOY_ENV (#43490)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Aug 28, 2024
1 parent b6e9bd2 commit 2cbe729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppLayoutDocsFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2cbe729

Please sign in to comment.