diff --git a/app/frontend/src/pages/tts.js b/app/frontend/src/pages/tts.js index 99959bc8..bd1119c2 100644 --- a/app/frontend/src/pages/tts.js +++ b/app/frontend/src/pages/tts.js @@ -49,7 +49,7 @@ const Page = () => { const responseData = await response.json(); if (responseData) { if (response.ok) { - const audioResponse = await fetch(`http://localhost:5000/audio/${responseData.filename}`, + const audioResponse = await fetch(`${process.env.NEXT_PUBLIC_BACKEND_URL}/audio/${responseData.filename}`, { method: 'GET', });