erikash
Explore posts from serversTTCTheo's Typesafe Cult
•Created by erikash on 1/12/2024 in #questions
`tsx ./src/server/db/SCRIPT_NAME` doesn't recognize environment variables.
I created a db migrator script similar to the recommendations here:
https://create.t3.gg/en/usage/prisma/#seeding-your-database
I'm trying to execute a script and the t3-env doesn't seem to load the
.env
file.
src/server/db/migrator.ts
is:
package.json
scripts are:
When running pnpm run migrate
I'm getting:
Erik.3 replies