mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-18 02:29:49 +00:00
Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
parent
9e3bc8e64f
commit
8ec488efbd
20 changed files with 41 additions and 42 deletions
|
@ -16,7 +16,7 @@ function Widget({ options }) {
|
|||
const { t, i18n } = useTranslation();
|
||||
|
||||
const { data, error } = useSWR(
|
||||
`api/widgets/openweathermap?${new URLSearchParams({ lang: i18n.language, ...options }).toString()}`,
|
||||
`/api/widgets/openweathermap?${new URLSearchParams({ lang: i18n.language, ...options }).toString()}`,
|
||||
);
|
||||
|
||||
if (error || data?.cod === 401 || data?.error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue