Fix issue with localhost refs
Tests / backend-test (pull_request) Successful in 6s
Tests / frontend-test (pull_request) Failing after 7s
Tests / e2e-test (pull_request) Failing after 1m29s

This commit is contained in:
(jenkins)
2026-04-17 00:45:24 +01:00
parent 8d646ecd74
commit c26f458df7
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ COPY . .
# Expose port
EXPOSE 3050
# Set environment variable for API URL
ENV VITE_API_URL=http://localhost:3051/api
# Set environment variable for API URL (relative to the frontend host)
ENV VITE_API_URL=/api
# Start development server
CMD ["npm", "start"]
+1 -4
View File
@@ -4,10 +4,7 @@ const API_BASE_URL = import.meta.env.VITE_API_URL || '/api';
const api = axios.create({
baseURL: API_BASE_URL,
timeout: 30000,
headers: {
'Content-Type': 'application/json'
}
timeout: 30000
});
export const getLineOfSight = async (lat, lon, direction, tolerance) => {