changed networking for hosting

This commit is contained in:
2025-08-03 20:26:24 +02:00
parent 4f98bf4e9a
commit 71da186bd6
2 changed files with 1 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ services:
- "7002:7002" - "7002:7002"
networks: networks:
- proxynet - proxynet
- weather-local
environment: environment:
- CHOKIDAR_USEPOLLING=true - CHOKIDAR_USEPOLLING=true
volumes: volumes:
@@ -18,7 +17,6 @@ services:
build: ./backend build: ./backend
networks: networks:
- proxynet - proxynet
- weather-local
ports: ports:
- "7001:7001" - "7001:7001"
volumes: volumes:
@@ -29,5 +27,3 @@ services:
networks: networks:
proxynet: proxynet:
external: true external: true
weather-local:
external: false

View File

@@ -3,7 +3,7 @@ import { myToast } from "./toastify";
export const fetchWeather = async (city: string, units: string) => { export const fetchWeather = async (city: string, units: string) => {
try { try {
const response = await fetch( const response = await fetch(
`http://localhost:7001/api/fetchWeather?city=${encodeURIComponent( `https://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent(
city city
)}&units=${encodeURIComponent(units)}`, )}&units=${encodeURIComponent(units)}`,
{ {