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
2024-04-13 11:34:55 +02:00
committed by GitHub
parent 7fb0decd5b
commit 80d2d485b8
19 changed files with 762 additions and 13 deletions

View File

@@ -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();
}