NODE_ENV and CONTEXT environment variables are `undefined` in my functions

I appreciate your reply. However setting NODE_ENV to production in the UI will break the build step as yarn/npm won’t install dev dependencies which some are used in the generate step of Nuxt.

I have found the solution to the problem by using a build plugin referenced in other threads in the forum.

2 Likes