Closed maaft closed 4 years ago
Okay, I found the solution and I think at this point it's not a bug but rather a feature. The documentation should of course explain this briefly.
For future reference: For running your server in production (nexus build), you need to set all environment variables in the shell where you run your index.js
:
export DATABASE_URL="...."
node index.js
Why is this a feature and not a bug?
This actually makes deployment more easy when you have to use e.g. different databases (or access credentials) in different environments.
Nexus Report
Screenshot
Description
Somehow the environment variables are missing inside the built app.
npx nexus dev works, by the way!