feat: add weather widget (#286)

* feat: add nestjs replacement, remove nestjs

* feat: add weather widget

* fix: lock issue

* fix: format issue

* fix: deepsource issues

* fix: change timezone to auto
This commit is contained in:
Meier Lukas authored and GitHub committed 2024-04-13 11:34:55 +02:00
1 parent 7fb0decd5b
commit 80d2d485b8
19 files changed
+762 -13

No files matched your search

@@ -5,6 +5,7 @@ import type { WidgetKind } from "@homarr/definitions";
import { Center } from "@homarr/ui";
import { widgetImports } from "@homarr/widgets";
import { env } from "~/env.mjs";
import { WidgetPreviewPageContent } from "./_content";
interface Props {
@@ -12,7 +13,7 @@ interface Props {
}
export default async function WidgetPreview(props: Props) {
if (!(props.params.kind in widgetImports)) {
if (!(props.params.kind in widgetImports || env.NODE_ENV !== "development")) {
notFound();
}