My NX application's npm run build:server
calls ng build api-server
that triggers the @nrwl/node:build
builder.
It builds the NestJS application as main.js
. Things work except I wanted process.env.NODE_ENV
to be evaluated at runtime but I think it was resolved at build time (via Webpack).
Currently, the value is always set to 'development'.
I am new to Nrwl's NX. Any solution this?