diff --git a/client/src/components/FeedbackModal.js b/client/src/components/FeedbackModal.js index e423ac8..e1f6f8f 100644 --- a/client/src/components/FeedbackModal.js +++ b/client/src/components/FeedbackModal.js @@ -39,7 +39,8 @@ const FeedbackModal = ({ onClose, onSuccess }) => { setStatusMessage('Submitting...'); try { - const response = await fetch('http://localhost:5000/api/feedback', { + const apiBase = (process.env.REACT_APP_API_URL || 'http://localhost:5000/api/auth').replace(/\/api\/auth$/, ''); + const response = await fetch(`${apiBase}/api/feedback`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(formData),