We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8245da7 commit 55372d3Copy full SHA for 55372d3
context/weatherContext.tsx
@@ -26,7 +26,7 @@ export const WeatherProvider = ({
26
27
const fetchWeather = useCallback(async (city: string) => {
28
const apiKey = import.meta.env.VITE_WEATHER_API_KEY;
29
- const apiUrl = `http://api.weatherapi.com/v1/forecast.json?key=${apiKey}&q=${city}&days=5`;
+ const apiUrl = `https://api.weatherapi.com/v1/forecast.json?key=${apiKey}&q=${city}&days=5`;
30
31
try {
32
const response = await fetch(apiUrl);
0 commit comments