Woet
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Woet on 4/21/2024 in #questions
Run migration with Drizzle for Neon
Sorry if this is a n00b question, but I'm having some troubles running a migration of a Neon database locally with the env.js.
I'm trying to run this with the command
pnpm run db:migrate
in the terminal
This is the script in package.json: "db:migrate": "tsx ./src/server/db/global/migrate.ts"
This gives me an error about the environment variables, anyone have an idea what I could do to fix this? :
I only need the DATABASE_URL in this migration and this is defined so I'm not sure why I'm getting an error on this.
11 replies