Skip to content

Commit

Permalink
Revert "perf: ⚡️ converted tRPC api route into edge runtime"
Browse files Browse the repository at this point in the history
This reverts commit 2fe96ac.
  • Loading branch information
growupanand committed Feb 13, 2024
1 parent b41bc5d commit 7bda4bf
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 26 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type NextRequest } from "next/server";
import { appRouter, createTRPCContext } from "@convoform/api";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";

export const runtime = "edge";
// export const runtime = "edge";

/**
* Configure basic CORS headers
Expand Down
3 changes: 2 additions & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"drizzle:apply-migration": "tsx ./src/migrate.ts"
},
"dependencies": {
"@neondatabase/serverless": "^0.8.1",
"@paralleldrive/cuid2": "^2.2.2",
"drizzle-orm": "^0.29.3",
"drizzle-zod": "^0.5.1",
"pg": "^8.11.3",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20",
"@types/pg": "^8.11.0",
"@typescript-eslint/parser": "^6.18.0",
"drizzle-kit": "^0.20.14",
"eslint": "^8.56.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/db/src/db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pool } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-serverless";
import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";

import * as schema from "./schema";

Expand Down
173 changes: 151 additions & 22 deletions pnpm-lock.yaml

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

0 comments on commit 7bda4bf

Please sign in to comment.