xxxxxxxxxx
/** If you are using Laravel and upgraded to or are using VITE compiler then
* "process.env." will likely give you an undefined error (like in your boostrap.js).
*/
//Change this:
process.env.MIX_YOUR_ENV_VAR
// To this:
import.meta.env.VITE_YOUR_ENV_VAR
// And make sure you update your .env variables accordingly
VITE_YOUR_ENV_VAR="${YOUR_ENV_VAR}"