fix(assistant): mysql message storage, migration metadata and per-page bundle cost (#6530)
This commit is contained in:
1 parent
f6f755d5c9
commit
a9b0c2ae47
14 files changed
+527
-129
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
import type { WidgetComponentProps } from "@homarr/widgets";
|
||||
|
||||
/**
|
||||
* Boards register a renderer for the assistant widget even when no board uses one. Loading the
|
||||
* renderer lazily keeps the conversation surface out of the board bundle until a board actually
|
||||
* places an assistant widget.
|
||||
*/
|
||||
const LazyAssistantBoardWidget = dynamic(() =>
|
||||
import("./assistant-widget").then((module) => ({ default: module.AssistantBoardWidget })),
|
||||
);
|
||||
|
||||
export const AssistantBoardWidgetLazy = (props: WidgetComponentProps<"assistant">) => (
|
||||
<LazyAssistantBoardWidget {...props} />
|
||||
);
|
||||
Reference in new issue
Block a user