My code is as follows:
export async function CompetitionsIndex(fixture) {
let competitions
const IS_DEBUG = import.meta.env.VITE_IS_DEBUG
console.log('IS_DEBUG: ',IS_DEBUG)
if (fixture && IS_DEBUG) {
console.log('fixture && IS_DEBUG: ', fixture && IS_DEBUG)
competitions = fixture
} else {
console.log('Come here')
}
return
}
Output in console:
IS_DEBUG: false
fixture && IS_DEBUG: false
Anyone have any idea why?
Notes
import.meta.env.VITE_IS_DEBUG
is false