fix build errs

This commit is contained in:
ramnique 2025-01-14 14:18:10 +05:30
parent 11e224eb4d
commit cb8d845c19
3 changed files with 4 additions and 3 deletions

View file

@ -4,4 +4,5 @@ node_modules
npm-debug.log
README.md
.next
.git
.git
.env*

View file

@ -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() || {};

View file

@ -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");