SnyMes
SnyMes
Explore posts from servers
BABetter Auth
Created by SnyMes on 4/10/2025 in #help
Updating better-auth schema after re-defining Prisma Schema
Nevermind. I got it done but yes, all the files being generated by prisma once you run the migrations get linted as well and that will cause an bunch of issues because it generates JS and not TS. 🤮
12 replies
BABetter Auth
Created by SnyMes on 4/10/2025 in #help
Updating better-auth schema after re-defining Prisma Schema
Once more thing. I foresee a lot of issues when I try and run bun run build because the linter is probably going to try and lint the generated files. You guys have a suggestion regarding this?
12 replies
BABetter Auth
Created by SnyMes on 4/10/2025 in #help
Updating better-auth schema after re-defining Prisma Schema
Thank @Ping ❤️
12 replies
BABetter Auth
Created by SnyMes on 4/10/2025 in #help
Updating better-auth schema after re-defining Prisma Schema
So by using secondary storage? Or am I missing you?
12 replies
BABetter Auth
Created by SnyMes on 4/10/2025 in #help
Updating better-auth schema after re-defining Prisma Schema
import { betterAuth } from "better-auth"; import { nextCookies } from "better-auth/next-js"; import { prismaAdapter } from "better-auth/adapters/prisma"; import { PrismaClient } from "@/lib/generated/prisma"; const prisma = new PrismaClient(); export const auth = betterAuth({ database: prismaAdapter(prisma, { provider: "postgresql", }), emailAndPassword: {
enabled: true }, plugins: [ nextCookies(), ], }); and: import { createAuthClient } from "better-auth/react" export const authClient = createAuthClient({ /** the base url of the server (optional if you're using the same domain) */ baseURL: "http://localhost:3000" })
12 replies
TTCTheo's Typesafe Cult
Created by SnyMes on 2/15/2024 in #questions
NextJS14 Server Action Refresh page
next/router is not used in app router. next navigation is. Also you can't use a router in server actions
4 replies