Skip to content

Commit

Permalink
this might acc work
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed Jan 6, 2025
1 parent b68450f commit 2ddee1f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 47 deletions.
1 change: 1 addition & 0 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@ai-sdk/openai": "^1.0.5",
"@aws-sdk/client-translate": "^3.699.0",
"@hookform/resolvers": "^3.9.0",
"@neondatabase/serverless": "^0.10.4",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/src/app/api/v1/quizzes/generate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { generateQuiz } from "./services/quiz-generator.service";
import { createTranslateClient, translateQuiz } from "./utils/translator";

export const dynamic = "force-dynamic";
export const runtime = "edge";

const ratelimit = new Ratelimit({
redis: Redis.fromEnv(),
Expand Down
7 changes: 2 additions & 5 deletions apps/dashboard/src/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import { drizzle } from 'drizzle-orm/neon-serverless';

// Disable prefetch as it is not supported for "Transaction" pool mode
export const client = postgres(process.env.DATABASE_URL!, { prepare: false });
export const db = drizzle({ client });
export const db = drizzle(process.env.DATABASE_URL!);
57 changes: 15 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ddee1f

Please sign in to comment.