Skip to content
Discussion options

You must be logged in to vote
// vite.config.ts

  define: {
    "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
  },

If this can help you solve the problem, I hope it can be marked as the answer. In addition, I think this question should appear in the discussion area of vite, not vue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by silvester-pari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants