mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-08 17:22:11 +08:00
Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user