cd ../../ && yarn build
Whenever the prisma schema is updated, run the following command to generate the types:
prisma-create-migrations
: this will add a new migration to the migrations folder, which will be committed to the repository. Our server environments do not generate the migrations on the fly, so we need to commit the migration to the repository. This requires a running database, so make sure to have the database running before running this command.prisma-generate
: this will generate the types for the prisma schema (and the client). This step is executed automatically when running on the server.
Fogetting step #1 will result in the server not being able to start, as the types will be missing.
yarn
yarn start