Skip to content

Commit

Permalink
fix: revert prisma client teardown (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Aug 28, 2022
1 parent 844eaf8 commit b3ce004
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-walls-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

revert prisma cleint teardown from #353
5 changes: 1 addition & 4 deletions cli/src/installers/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export const trpcInstaller: Installer = async ({

const trpcAssetDir = path.join(PKG_ROOT, "template/addons/trpc");

const apiHandlerSrc = path.join(
trpcAssetDir,
usingPrisma ? "api-handler-prisma.ts" : "api-handler.ts",
);
const apiHandlerSrc = path.join(trpcAssetDir, "api-handler.ts");
const apiHandlerDest = path.join(projectDir, "src/pages/api/trpc/[trpc].ts");

const utilsSrc = path.join(trpcAssetDir, "utils.ts");
Expand Down
12 changes: 0 additions & 12 deletions cli/template/addons/trpc/api-handler-prisma.ts

This file was deleted.

1 comment on commit b3ce004

@vercel
Copy link

@vercel vercel bot commented on b3ce004 Aug 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

create-t3-app – ./

create-t3-app-t3-oss.vercel.app
create-t3-app-nu.vercel.app
create-t3-app-git-main-t3-oss.vercel.app

Please sign in to comment.