update Database seeding script for Next.js - #2338
Conversation
|
Did you test this script on Windows? There were multitudes of bugs because previously the example used a script that did not work on some platforms. Just replacing this without any conversation or review is not very nice. |
|
@janpio oh I'm really sorry I didn't know that this issue was related to something cross platform, I thought it was something generic. 馃槵 Should I revert the change? |
|
All good. I now realize my response sounded a lot more terse than I wanted it to - too many issues in to short amount of time :D Lets finish this via Slack and see where we end up. |
|
prisma/orm#9211 contained a link to a reproduction repository, and we could confirm this change makes it work on Windows as well - so seems all good. |
Describe this PR
The seeding script mentioned in the docs, doesn't work for Next.js + TS projects and threw an error. For more details, check out this issue
Changes
Update seeding script to work with Next.js
This script doesn't work anymore with Prisma 3
After
What issue does this fix?
Fixes this issue