ci : full deploy with searxng, usgi, frontend (in progress)

This commit is contained in:
martin legrand
2025-04-15 11:04:41 +02:00
parent 89c3ecea68
commit 14f42b638d
8 changed files with 142 additions and 114 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ function App() {
try {
//const res = await axios.post('http://backend:8000/query', { ... });
const res = await axios.post('http://localhost:8000/query', {
const res = await axios.post('${process.env.BACKEND_URL}/query', {
query,
lang: 'en',
tts_enabled: false,
@@ -56,7 +56,7 @@ function App() {
const handleGetScreenshot = async () => {
try {
//const res = await axios.get('http://backend:8000/screenshots/updated_screen.png');
const res = await axios.get('http://localhost:8000/screenshots/updated_screen.png');
const res = await axios.get('${process.env.BACKEND_URL}/screenshots/updated_screen.png');
setResponseData((prev) => ({ ...prev, screenshot: res.data.screenshot }));
setCurrentView('screenshot');
} catch (err) {
@@ -153,7 +153,7 @@ function App() {
</div>
) : (
<div className="screenshot">
<img src="http://localhost:8000/screenshots/updated_screen.png" alt="Screenshot" />
<img src="${process.env.BACKEND_URL}/screenshots/updated_screen.png" alt="Screenshot" />
</div>
)}
</div>