diff --git a/apps/starter-templates/next-js-starter/package.json b/apps/starter-templates/next-js-starter/package.json index 433d9f37e..1e32cce93 100644 --- a/apps/starter-templates/next-js-starter/package.json +++ b/apps/starter-templates/next-js-starter/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev --turbopack", - "build": "next build --turbopack", + "build": "next build", "start": "next start" }, "dependencies": { diff --git a/apps/starter-templates/next-js-starter/src/app/demo/_actions.ts b/apps/starter-templates/next-js-starter/src/app/demo/_actions.ts index e19860fe8..ac9165700 100644 --- a/apps/starter-templates/next-js-starter/src/app/demo/_actions.ts +++ b/apps/starter-templates/next-js-starter/src/app/demo/_actions.ts @@ -2,18 +2,8 @@ import { getRootAgent } from "@/agents"; -let agentRunner: Awaited>["runner"]; - -async function getAgentRunner() { - if (!agentRunner) { - const { runner } = await getRootAgent(); - agentRunner = runner; - } - return agentRunner; -} - export async function askAgent(message: string) { - const runner = await getAgentRunner(); + const { runner } = await getRootAgent(); const result = await runner.ask(message); return result; } diff --git a/apps/starter-templates/next-js-starter/src/components/ui/card.tsx b/apps/starter-templates/next-js-starter/src/components/ui/card.tsx deleted file mode 100644 index 4722c0e3e..000000000 --- a/apps/starter-templates/next-js-starter/src/components/ui/card.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import * as React from "react"; - -import { cn } from "@/lib/utils"; - -function Card({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardHeader({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardTitle({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardDescription({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardAction({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardContent({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -function CardFooter({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); -} - -export { - Card, - CardHeader, - CardFooter, - CardTitle, - CardAction, - CardDescription, - CardContent, -};