c
c
TTCTheo's Typesafe Cult
Created by c on 5/25/2024 in #questions
Using table prefixes in drizzle multi-project schema with NextAuth.
I'm using a setup that allows for schemas of different projects in one database, the default drizzle setup with T3. Using
"@auth/drizzle-adapter": "^1.1.0",
"drizzle-orm": "^0.29.5",
"next": "^14.2.3",
"next-auth": "5.0.0-beta.18",
"postgres": "^3.4.4",
"@auth/drizzle-adapter": "^1.1.0",
"drizzle-orm": "^0.29.5",
"next": "^14.2.3",
"next-auth": "5.0.0-beta.18",
"postgres": "^3.4.4",
See: https://orm.drizzle.team/docs/goodies#multi-project-schema using const pgTable = pgTableCreator((name) => project1_${name}); When I'm attempting to persist to a database now I receive this error: [auth][cause]: error: relation "account" does not exist It seems somewhere the reference to the account table is hard-coded and doesn't read from the schema.ts - would appreciate any help with this!
4 replies
TTCTheo's Typesafe Cult
Created by c on 2/3/2023 in #questions
Where do you go for UI inspiration/problem-solving?
Do you look at UI component libraries for collections of interfaces? Do you keep a lookbook/swipe file/figma with ideas?
1 replies
TTCTheo's Typesafe Cult
Created by c on 1/26/2023 in #questions
Example files missing, referenced in folder structure docs.
From https://create.t3.gg/en/folder-structure#srcpagesapi
src/pages/api The api folder contains all the API routes of the Next.js application. The examples.ts file contains an example of a route that uses the Next.js API route feature along with Prisma. The restricted.ts file contains an example of a route that uses the Next.js API route feature and is protected by NextAuth.js.
When I look through the actual folder structure of a newly scaffolded app I don't see either. Were they removed and just not updated in docs? Are those examples contained elsewhere in the structure now?
11 replies