#Custom NODE_ENV

1 messages · Page 1 of 1 (latest)

limber venture
#

hey, how can i set the NODE_ENV with something custom like NODE_ENV=test? it didn't work with "remix-serve build" or "remix dev" even when i add that NODE_ENV=test inside the .env file

late venture
#

In what sense did it not work? And how are you accessing the attribute?
Working with a package like dotenv , or environment variables requires a full restart of the development server for variables to properly load 🙂
Did you do so already?

shy jacinth
#

Why do you want to choose something non-standard? The NODE_ENV is for Node to determine whether it should install devDependencies or not, rather than something you should be using for this