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'
- [Vuejs]-How to Pinia Test => Method calling another => toHaveBeenCalledTimes?
- [Vuejs]-How to show data according v-for index outside loop
Source:stackexchange.com