From b1e00359030caee7fc11209f3242283edeae724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=83=A4=E8=89=AF?= <2540251142@qq.com> Date: Tue, 14 Nov 2023 20:08:44 -0700 Subject: [PATCH] fix localhost usage --- app/frontend/src/pages/tts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', });