alfreddey / blogr-nextjs-prisma

https://blogr-nextjs-prisma-ochre-nu.vercel.app
0 stars 0 forks source link

Setup Prisma and create the database #3

Open alfreddey opened 1 week ago

alfreddey commented 1 week ago

Make sure the .env is named correctly. At the previous stage, Vercel created a local .env.local file instead of .env. This made it difficult to setup prisma because prisma couldn't find the .env file. Renaming the file from .env.local to .env fixed the bug.

alfreddey commented 1 week ago

(Not important, but noteworthy) I used pnpm in this project. So most instructions where pnpm or pnpx as compared to the usual npm or npx.