changed networking for hosting
This commit is contained in:
@@ -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
|
||||
|
@@ -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)}`,
|
||||
{
|
||||
|
Reference in New Issue
Block a user