Next.js Discord

Discord Forum

How do I setup a "prisma migrate deploy" step using Next standalone deployment?

Unanswered
Golden paper wasp posted this in #help-forum
Open in Discord
Golden paper waspOP
Right now I'm using the T3 stack (https://create.t3.gg/) with Next.js and Prisma. It uses the output: standalone option per the following Dockerfile (https://create.t3.gg/en/deployment/docker). But given this setup, I'm not really sure how to run the prisma migrate deploy step? Running prisma migrate deploy from the Dockerfile above doesn't seem to work. Would I have to create another Dockerfile that copies the entire package over and runs the migrate step? Or do you recommend something else?

0 Replies