nestjs-graphql-best-practice
nestjs-graphql-best-practice copied to clipboard
can not build nest app
I couldn't build nest app on the cicd branch. I think you just need to update a few things.
bcryptversion upgrade- update some files
src/config/graphql/index.ts
// before
requireResolversForResolveType: false
// after
requireResolversForResolveType: 'error' or 'warn'
src/shared/mail/index.ts
// before
console.log('Message sent: ' + JSON.parse(info))
// after
console.log('Message sent: ' + JSON.stringify(info))
Dockerfile
# before
CMD "npm run start:prod"
# after
CMD ["npm", "run", "start:prod"]
docker-compose.yml
# before
command: npm run start:prod
# after
command: sh -c "npm rebuild && npm run start:dev"