node >= 16.x
npm >= 8.15.0
Note To change the database you have to modify the
provider
value found in theprisma/schema.prisma
file and the environment variableDATABASE_URL
npx prisma generate
npx prisma db push
Warning If your project does not require a database, you can follow the following actions.
npm uninstall prisma @prisma/client
rm -rf prisma
npm run dev
npm run build
npm run start
docker build --tag next-template-image .
docker build --tag nginx-image ./nginx
docker network create my-network
docker run --network my-network --name next-template-container next-template-image
docker run --network my-network --link next-template-container:nextjs --publish 80:80 nginx-image
docker-compose up -d