mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 11:26:23 +02:00
Next.js changes for playground streaming
This commit is contained in:
parent
24efe0e887
commit
77b53696b6
14 changed files with 290 additions and 160 deletions
|
|
@ -13,18 +13,16 @@ export default async function Page({
|
|||
}: {
|
||||
params: { projectId: string };
|
||||
}) {
|
||||
console.log('->>> workflow page being rendered');
|
||||
const project = await projectsCollection.findOne({
|
||||
_id: params.projectId,
|
||||
});
|
||||
if (!project) {
|
||||
notFound();
|
||||
}
|
||||
const toolWebhookUrl = project.webhookUrl ?? '';
|
||||
|
||||
return <App
|
||||
projectId={params.projectId}
|
||||
useRag={USE_RAG}
|
||||
mcpServerUrls={project.mcpServers ?? []}
|
||||
toolWebhookUrl={toolWebhookUrl}
|
||||
/>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue