Skip to content

Commit 275c9e1

Browse files
feat: add vercel deploy button
1 parent 9322009 commit 275c9e1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/agents-researcher/app/components/agent-ui.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type { AgentName, StepRecord, PollResult } from "../types";
1818
import { AgentBlock } from "./agent-block";
1919
import { IconBrandGithub, IconFile, IconLoader2 } from "@tabler/icons-react";
2020
import { pollOutputs } from "../actions";
21+
import DeployButton from "./deploy-button";
2122

2223
export const AgentUI = ({ session }: { session?: string }) => {
2324
const [query, setQuery] = useState("");
@@ -573,6 +574,9 @@ const Header = () => {
573574
<IconBrandGithub size={18} />
574575
Repository
575576
</a>
577+
<div className="h-8 w-[103px]">
578+
<DeployButton />
579+
</div>
576580
</div>
577581
</div>
578582
</header>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default function DeployButton() {
2+
return (
3+
<a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fupstash%2Fworkflow-js%2Ftree%2Fmain%2Fexamples%2Fagents-researcher&env=OPENAI_API_KEY,WOLFRAM_ALPHA_APP_ID,EXASEARCH_API_KEY&project-name=agents-researcher&repository-name=agents-researcher&demo-title=Cross%20Reference%20Agent&demo-description=A%20simple%20example%20to%20demonstrate%20how%20to%20use%20Upstash%20Workflow%20Agents%20to%20cross-reference%20information%20from%20different%20sources.&demo-url=https%3A%2F%2Fagents-researcher.vercel.app%2F&products=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22upstash%22%2C%22productSlug%22%3A%22upstash-kv%22%2C%22protocol%22%3A%22storage%22%2C%22group%22%3A%22%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22upstash%22%2C%22productSlug%22%3A%22upstash-qstash%22%2C%22protocol%22%3A%22storage%22%2C%22group%22%3A%22%22%7D%5D">
4+
<img src="https://vercel.com/button" alt="Deploy with Vercel" />
5+
</a>
6+
);
7+
}
8+

0 commit comments

Comments
 (0)