[Vuejs]-How to use default property value to define another property in Nuxt config?

0👍

I was able to solve a problem.

As I understand it’s not the dev property itself that is being forced by Nuxt, but rather NODE_ENV env var, and then

dev: process.env.NODE_ENV !== 'production'

So I can define my property using NODE_ENV directly (since I already know how to work with it):

anotherProp: process.env.NODE_ENV === 'production'

Leave a comment