AfonsoHell
AfonsoHell
TTCTheo's Typesafe Cult
Created by AfonsoHell on 3/29/2024 in #questions
t3-env setup with tsx
Hi, I wanted to have a script pnpm db:migrate to run the drizzle migrations to the database. This is done with: tsx ./src/server/db/migrations.ts The problem is that I cannot access any env variables this way, how would i make the env.mjs file run on this command so I can have access to them? I tried adding the --env-file=.env flag but it only works locally and not on vercel
1 replies
TTCTheo's Typesafe Cult
Created by AfonsoHell on 3/27/2024 in #questions
Drizzle, Neon, Vercel deployment config
Hi everyone, I'm starting a project with the T3 stack and I was wondering, how would I set up Vercel and Drizzle to update my database on Neon when i deploy to production?
2 replies