Hi, I'm able to seed data with a `seed.ts` file an...
# orm-help
c
Hi, I'm able to seed data with a
seed.ts
file and
prisma db seed --preview-feature
. Is it possible to invoke the seed with parameters? Possibly passed via env vars? Edit: working sample in thread.
Copy code
async function main(): Promise<void> {
  const ownerId = process.env['OWNER_ID'] || DEFAULT_ID;
  console.log({ ownerId });
}
r
@Carlos Gomez 👋 You can use
dotenv
or dotenv-cli to achieve the same with env vars 🙂
👍 1