Why is my production vite environment variable in dev state after build? #12635
Unanswered
SituC
asked this question in
Help/Questions
Replies: 1 comment
-
能看到vuetool是什么意思,你是想让那个图标不亮么还是什么 哦,懂了 你把 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used vue3 and vite.
This is what I printed
import.meta.env
in production.Instead of starting the production web service with 'vite preview', it opens the static assets using node-server.
The end result is a production environment running in development mode. This allows Google's vuetool plugin to be viewed in production instead of being banned.
I tried to change the environment variable in vite and it got what I wanted, but I was still able to see vuetool. What happened? How do I fix it
I'd like to be able to disable vuetool in production (even though it's disabled by default), but I'm also worried about other optimizations because it's possible to build the app while it's running in development mode.
Beta Was this translation helpful? Give feedback.
All reactions