nestjs-graphql-best-practice icon indicating copy to clipboard operation
nestjs-graphql-best-practice copied to clipboard

can not build nest app

Open well-balanced opened this issue 3 years ago • 0 comments

I couldn't build nest app on the cicd branch. I think you just need to update a few things.

  1. bcrypt version upgrade
  2. 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"

well-balanced avatar Jan 13 '22 05:01 well-balanced