@quasar/app-vite2.0.1. Vue Devtools is detecting ssr mode in "development mode" even though you've built it in production mode #17702
-
When I use quasar build --mode ssr command and when I run npm start at path ./dist/ssr I tried console.log('Is Development:', process.env.NODE_ENV !== 'production'); in production, it gives 'Is Development: false'. I use @quasar/app-vite version 2.0.1. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There seems to be a bug in Vue itself. It doesn't care if the flag for it (VUE_PROD_DEVTOOLS) is set to Boolean false or true. If it's defined, it's being used. Will report this to the Vue team and also add a workaround in our CLIs. Edit: reported it here |
Beta Was this translation helpful? Give feedback.
There seems to be a bug in Vue itself. It doesn't care if the flag for it (VUE_PROD_DEVTOOLS) is set to Boolean false or true. If it's defined, it's being used. Will report this to the Vue team and also add a workaround in our CLIs.
Edit: reported it here
Edit 2: temporary workaround (until it gets fixed upstream) included in q/app-vite v2.0.2 (just released it)