mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
fix build errs
This commit is contained in:
parent
11e224eb4d
commit
cb8d845c19
3 changed files with 4 additions and 3 deletions
|
|
@ -4,4 +4,5 @@ node_modules
|
|||
npm-debug.log
|
||||
README.md
|
||||
.next
|
||||
.git
|
||||
.git
|
||||
.env*
|
||||
|
|
@ -17,7 +17,7 @@ import { Claims, getSession } from "@auth0/nextjs-auth0";
|
|||
import { revalidatePath } from "next/cache";
|
||||
import { baseWorkflow } from "./lib/utils";
|
||||
|
||||
const crawler = new FirecrawlApp({ apiKey: process.env.FIRECRAWL_API_KEY });
|
||||
const crawler = new FirecrawlApp({ apiKey: process.env.FIRECRAWL_API_KEY || '' });
|
||||
|
||||
export async function authCheck(): Promise<Claims> {
|
||||
const { user } = await getSession() || {};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { MongoClient } from "mongodb";
|
|||
import { PlaygroundChat, DataSource, EmbeddingDoc, Project, Webpage, ChatClientId, Workflow, Scenario, ProjectMember } from "./types";
|
||||
import { z } from 'zod';
|
||||
|
||||
const client = new MongoClient(process.env["MONGODB_CONNECTION_STRING"] || "");
|
||||
const client = new MongoClient(process.env["MONGODB_CONNECTION_STRING"] || "mongodb://localhost:27017");
|
||||
|
||||
export const db = client.db("rowboat");
|
||||
export const dataSourcesCollection = db.collection<z.infer<typeof DataSource>>("sources");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue