use proxy for local development

This commit is contained in:
2024-02-02 01:08:18 +01:00
parent 74a5cf7cbf
commit c6d481556b
3 changed files with 8 additions and 7 deletions

View File

@ -31,7 +31,7 @@ function Station() {
useQueryClient()
const stopQuery = useQuery({
queryKey: ['stop', stopId],
queryFn: () => fetch(`http://localhost:8000/api/gtfs/stop/${stopId}/`)
queryFn: () => fetch(`/api/gtfs/stop/${stopId}/`)
.then(response => response.json()),
enabled: !!stopId,
})