Use NestJS's built-in configuration libraries to inject environment variables into the runtime.
Currently there are two different .env files (.env.development and .env.production) which change depending on the given NODE_ENV environment variable. Then the correct environment variables are applied to both NestJS and Prisma.
Later it would be better to also define the variables directly in the running environment (docker, k8s ConfigMap and Secret).
Use NestJS's built-in configuration libraries to inject environment variables into the runtime.
Currently there are two different.env
files (.env.development
and.env.production
) which change depending on the givenNODE_ENV
environment variable. Then the correct environment variables are applied to both NestJS and Prisma.Later it would be better to also define the variables directly in the running environment (docker, k8s ConfigMap and Secret).
Prisma ORM has also been configured.