From 71da186bd65c1ff8ef0e8315bd66c84e15aef9ef Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Sun, 3 Aug 2025 20:26:24 +0200 Subject: [PATCH] changed networking for hosting --- docker-compose.yml | 4 ---- frontend/src/utils/apiFunc.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 38f1314..90023c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,6 @@ services: - "7002:7002" networks: - proxynet - - weather-local environment: - CHOKIDAR_USEPOLLING=true volumes: @@ -18,7 +17,6 @@ services: build: ./backend networks: - proxynet - - weather-local ports: - "7001:7001" volumes: @@ -29,5 +27,3 @@ services: networks: proxynet: external: true - weather-local: - external: false diff --git a/frontend/src/utils/apiFunc.ts b/frontend/src/utils/apiFunc.ts index 1b45d1c..91293a0 100644 --- a/frontend/src/utils/apiFunc.ts +++ b/frontend/src/utils/apiFunc.ts @@ -3,7 +3,7 @@ import { myToast } from "./toastify"; export const fetchWeather = async (city: string, units: string) => { try { const response = await fetch( - `http://localhost:7001/api/fetchWeather?city=${encodeURIComponent( + `https://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent( city )}&units=${encodeURIComponent(units)}`, {