'Vercel Sveltekit dev environment

I'm using Sveltekit and Vite, they have a variable dev which tells you the environment you are running on, i also deploy on Vercel. For all branches the variable is always false, i would like it to be true for preview branches. i assume it is so because i build the project, I'm hesitant to go with defining my own predefined variables for the different branches because it would mean i reinforce the same to the team going forward. is there another route to take?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source