Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion orm/betterauth-nextjs/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
BETTER_AUTH_SECRET=
DATABASE_URL=
BETTER_AUTH_SECRET=change-me
BETTER_AUTH_URL=http://localhost:3000
35 changes: 17 additions & 18 deletions orm/betterauth-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,26 @@
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
"start": "next start"
},
"dependencies": {
"@prisma/client": "6.10.1",
"@prisma/extension-accelerate": "2.0.2",
"better-auth": "1.2.12",
"next": "15.3.5",
"react": "19.1.0",
"react-dom": "19.1.0"
"@prisma/client": "^6.16.3",
"@prisma/extension-accelerate": "^2.0.2",
"better-auth": "1.3.24",
"next": "15.5.4",
"react": "19.2.0",
"react-dom": "19.2.0"
},
"devDependencies": {
"@eslint/eslintrc": "3.3.1",
"@tailwindcss/postcss": "4.1.13",
"@types/node": "20.19.13",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"eslint": "9.30.1",
"eslint-config-next": "15.3.5",
"prisma": "6.10.1",
"tailwindcss": "4.1.13",
"typescript": "5.8.3"
"@tailwindcss/postcss": "4.1.14",
"@types/node": "24.6.2",
"@types/react": "19.2.0",
"@types/react-dom": "19.2.0",
"eslint": "9.36.0",
"eslint-config-next": "15.5.4",
"prisma": "^6.16.3",
"tailwindcss": "4.1.14",
"typescript": "5.9.3"
}
}
}
5 changes: 3 additions & 2 deletions orm/betterauth-nextjs/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

generator client {
provider = "prisma-client-js"
output = "../src/generated/prisma"
provider = "prisma-client"
engineType = "client"
output = "../src/generated/prisma"
}

datasource db {
Expand Down
2 changes: 1 addition & 1 deletion orm/betterauth-nextjs/src/lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from '@/generated/prisma'
import { PrismaClient } from '@/generated/prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate'

const prisma = new PrismaClient().$extends(withAccelerate())
Expand Down
28 changes: 28 additions & 0 deletions orm/nextjs/app/generated/prisma/browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// @ts-nocheck
/*
* This file should be your main import to use Prisma-related types and utilities in a browser.
* Use it to get access to models, enums, and input types.
*
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
* See `client.ts` for the standard, server-side entry point.
*
* 🟢 You can import this file directly.
*/

import * as Prisma from './internal/prismaNamespaceBrowser'
export { Prisma }
export * as $Enums from './enums'
export * from './enums';
/**
* Model User
*
*/
export type User = Prisma.UserModel
/**
* Model Post
*
*/
export type Post = Prisma.PostModel
52 changes: 52 additions & 0 deletions orm/nextjs/app/generated/prisma/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// @ts-nocheck
/*
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
*
* 🟢 You can import this file directly.
*/

import * as process from 'node:process'
import * as path from 'node:path'
import { fileURLToPath } from 'node:url'
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))

import * as runtime from "@prisma/client/runtime/client"
import * as $Enums from "./enums"
import * as $Class from "./internal/class"
import * as Prisma from "./internal/prismaNamespace"

export * as $Enums from './enums'
export * from "./enums"
/**
* ## Prisma Client
*
* Type-safe database client for TypeScript
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export const PrismaClient = $Class.getPrismaClientClass(__dirname)
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
export { Prisma }



/**
* Model User
*
*/
export type User = Prisma.UserModel
/**
* Model Post
*
*/
export type Post = Prisma.PostModel
Loading
Loading