Initial commit from agent-native create
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { agentNative } from "@agent-native/core/vite";
|
||||
import { reactRouter } from "@react-router/dev/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const reactRouterPlugins = reactRouter as unknown as () => any[];
|
||||
const agentNativePlugins = agentNative as unknown as (
|
||||
options?: Parameters<typeof agentNative>[0],
|
||||
) => any[];
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
...reactRouterPlugins(),
|
||||
...agentNativePlugins({
|
||||
// shiki only runs in AssistantChat's useEffect — keep it out of the
|
||||
// CF Pages Functions bundle (25 MiB limit).
|
||||
ssrStubs: ["shiki"],
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user