mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
@@ -15,7 +15,7 @@ import mapIcon from "../../../utils/weather/openmeteo-condition-map";
|
||||
function Widget({ options }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { data, error } = useSWR(`api/widgets/openmeteo?${new URLSearchParams({ ...options }).toString()}`);
|
||||
const { data, error } = useSWR(`/api/widgets/openmeteo?${new URLSearchParams({ ...options }).toString()}`);
|
||||
|
||||
if (error || data?.error) {
|
||||
return <Error options={options} />;
|
||||
|
||||
Reference in New Issue
Block a user