Skip to content

Commit

Permalink
[docs] Fix use of process.env.DEPLOY_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 28, 2024
1 parent a32add2 commit af089ba
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 af089ba

Please sign in to comment.