Dale
Dale
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
Thanks!
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
Oh I do have that. It looks like I just needed to restart VSCode
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
But not really sure why
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
Somewhere in the video, Theo mentioned that you can just run npm install in place of prisma generate to sync up the database sometimes
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
npm install isn’t enough?
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
This is the error on the ctx.prisma.post.findMany() call
Unsafe return of an `any` typed value.eslint@typescript-eslint/no-unsafe-return
Unsafe return of an `any` typed value.eslint@typescript-eslint/no-unsafe-return
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/11/2023 in #questions
NextAuth and custom paths
Anybody have any ideas?
6 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/11/2023 in #questions
NextAuth and custom paths
When I click the signin() function it redirects properly to http://<ip address>:8000/next-api/auth/signin but then when clicking on the "sign in with github" it redirects to http://localhost:3000/api/auth/signin/github
6 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/11/2023 in #questions
NextAuth and custom paths
Instead of NEXTAUTH_URL=http://localhost:8000, I am using something like NEXTAUTH_URL=http://<ip address>:8000/next-api/auth (Note, we also are using next-api instead of api since we have a legacy api that we are trying to move away from)
6 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/11/2023 in #questions
NextAuth and custom paths
Currently, I am trying to set up the NEXTAUTH_URL but it's not super straightforward how to do this?
6 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
That does seem to be the answer ^^
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
I will test more
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
Ahh it seems like it might be as simple as adding a
"prisma": {
"schema": "./packages/db/prisma/schema.prisma"
},
"prisma": {
"schema": "./packages/db/prisma/schema.prisma"
},
to the package.json
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
Also, how would this allow me to run a npx prisma studio command from the root dir?
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
Wouldn't adding a local host overwrite that?
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
e.g.
DATABASE_URL='postgres://postgres:{password}@db.{string}.supabase.co:6543/postgres'
DATABASE_URL='postgres://postgres:{password}@db.{string}.supabase.co:6543/postgres'
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
No I am still confused. My .env file already has a DATABASE_URL connection to a supabase hosted postgres database
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
I have a different DATABASE_URL that is connected to a postegres database on supabase.. is that wrong?
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
e.g.
> npx prisma migrate dev
Prisma schema loaded from schema.prisma
Error: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Environment variable not found: DATABASE_URL.
--> schema.prisma:10
|
9 | provider = "postgresql"
10 | url = env("DATABASE_URL")
|

Validation Error Count: 1
> npx prisma migrate dev
Prisma schema loaded from schema.prisma
Error: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Environment variable not found: DATABASE_URL.
--> schema.prisma:10
|
9 | provider = "postgresql"
10 | url = env("DATABASE_URL")
|

Validation Error Count: 1
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
Wait, that causes errors though because of the environment variables?
16 replies