Passing Vite arguments to sanity build command #3640
Unanswered
lobunto
asked this question in
Sanity Studio Support
Replies: 1 comment
-
Hi! We're not doing a plain I also want to ask how you planned to use |
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
-
Since Sanity V3 are using Vite, I would suppose that I could pass [Vite] arguments to the
sanity build
command.I've tried adding
--mode
like thissanity build --mode staging
, but the mode (import.meta.env.MODE
) always becomesproduction
.Has anyone else had this issue, or is it possible at all to pass or override Vite arguments?
Beta Was this translation helpful? Give feedback.
All reactions