Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
1 parent
9e3bc8e64f
commit
8ec488efbd
20 files changed
+41
-42
No files matched your search
@@ -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